سلامچگونه لینک یک گروه رو در بیاریم گروه چه خصوصی باشد چه عمومی ربات وقتی ادمین باشه بتونه لینک اون گروه در بیاره
@amirhossein6985
سلام، این دستور در کتابخانه ایراد داشت، برای همین کتابخانه بروز شد:
1
|
pip install pyrobale -U |
1 2 3 4 5 6 7 8 9 10 |
import pyrobale bot = pyrobale.Client("TOKEN") @bot.on_command("link") async def start(message: pyrobale.Message): link = await bot.create_chat_invite_link(message.chat.id) await bot.send_message(message.chat.id, link.creator.username) bot.run() |