Sfoglia il codice sorgente

fix: 'Client' object has no attribute 'update_chat_username' (#221)

˹ᴧɴσɴʏᴍσᴜs ꭙ˼ 3 anni fa
parent
commit
99f4499dbe
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      wbb/modules/userbot.py

+ 1 - 1
wbb/modules/userbot.py

@@ -247,7 +247,7 @@ async def reserve_channel_handler(_, message: Message):
 
     chat = await app2.create_channel(username, "Created by .reserve command")
     try:
-        await app2.update_chat_username(chat.id, username)
+        await app2.set_chat_username(chat.id, username)
     except Exception as e:
         await m.edit(f"Couldn't Reserve, Error: `{str(e)}`")
         return await app2.delete_channel(chat.id)