Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from aiogram import Bot, types
- from aiogram.dispatcher import Dispatcher
- from aiogram.utils import executor
- import random
- from config import TOKEN, QST_LIST
- bot = Bot(token=TOKEN)
- dp = Dispatcher(bot)
- dp.message_handler(commands=['startneverhaveiever'])
- async def process_startnhie_command(message: types.Message):
- await bot.send_poll(message.chat.id, question=random.choice(config.QST_LIST), options=['+', '-'], is_anonymous=False)
- dp.message_handler(commands=['start'])
- async def process_start_command(msg: types.Message):
- await bot.send_message('123\n')
- dp.message_handler(commands=['join'])
- async def process_join_command(edit: types.Message):
- await bot.edit_message_text(msg.chat.id, msg.message.id, '456\n')
- if __name__ == '__main__':
- executor.start_polling(dp)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement