Explorar o código

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

˹ᴧɴσɴʏᴍσᴜs ꭙ˼ %!s(int64=3) %!d(string=hai) anos
pai
achega
99f4499dbe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)