from shadpy import Client
from shadpy.types import Update
import re
bot = Client('BOT')
@bot.on_message_updates()
async def update(m:Update):
message = m.to_dict()['message']
if 'poll' in message:
poll = message['poll']
index = -1
for que in poll['options']:
index+=1
if re.search(r'حاضر',que):
await bot.vote_poll(poll['poll_id'],index)
bot.run()
سورس ربات شاد که وقتی نظر سنجی میفرستن گزینه حاضر میزنه😂😂😂
بدرد کسایی میخوره که شاد کلاس درسی دارن😂
کتابخونه ها:
pip install shadpy
@rubikaBots