2022-10-18 19:17:36 +10:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from aiogram import Bot, Dispatcher, executor, types
|
2022-10-18 20:22:30 +10:00
|
|
|
from aiogram.types import ReplyKeyboardRemove, ReplyKeyboardMarkup, KeyboardButton
|
2022-10-18 19:17:36 +10:00
|
|
|
API_TOKEN = '5724991559:AAEuLvpLsgP6LHRGMSyFtQLlR5qPQUO4b_w'
|
|
|
|
|
|
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
|
|
|
|
|
|
# Initialize bot and dispatcher
|
|
|
|
bot = Bot(token=API_TOKEN)
|
|
|
|
dp = Dispatcher(bot)
|
2022-10-18 20:27:49 +10:00
|
|
|
# @dp.message_handler(commands=['start', 'help'])
|
|
|
|
# async def send_welcome(message: types.Message):
|
|
|
|
# await message.reply("Дарова пидорас!")
|
2022-10-18 19:17:36 +10:00
|
|
|
|
2022-10-18 20:22:30 +10:00
|
|
|
async def send_welcome(message: types.Message):
|
|
|
|
kb = [types.KeyboardButton(text="Пошел на хуй"), types.KeyboardButton(text="Нет, ты!")]
|
2022-10-18 20:25:23 +10:00
|
|
|
keyboard = types.ReplyKeyboardMarkup(keyboard=kb)
|
|
|
|
await message.reply("Дарова", reply_markup=keyboard)
|
|
|
|
|
|
|
|
# @dp.message_handler()
|
|
|
|
# async def echo(message: types.Message):
|
|
|
|
# if 'привет' in message.text:
|
|
|
|
# await message.answer('pidor2')
|
|
|
|
# else:
|
|
|
|
# await message.answer(message.text)
|
|
|
|
# @dp.message_handler()
|
|
|
|
|
|
|
|
# async def echo_mesaage(message: types.Message):
|
|
|
|
|
2022-10-18 19:17:36 +10:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
executor.start_polling(dp, skip_updates=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
executor.start_polling(dp, skip_updates=True)
|