From 036a68a7a1dfe348dc1176e8558dbdaae2f97694 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Fri, 26 Jun 2026 16:18:11 +0200 Subject: [PATCH] fix examples/send_and_exit.py use rpc.background_fetch --- examples/send_and_exit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/send_and_exit.py b/examples/send_and_exit.py index 840c13c..debefa1 100644 --- a/examples/send_and_exit.py +++ b/examples/send_and_exit.py @@ -30,7 +30,7 @@ def send(_cli: BotCli, bot: Bot, args: Namespace) -> None: # first fetch incoming messages to have updated chats state bot.logger.info("first syncing chats state...") - bot.rpc.accounts_background_fetch(60) + bot.rpc.background_fetch(60) bot.logger.info("sending message...") chatid = cli.get_admin_chat(bot.rpc, accid)