#python #aiogram
from aiogram import Bot, Dispatcher, types
from aiogram.utils import executor
bot = Bot(token='BOT TOKENI')
dp = Dispatcher(bot)
@dp.message_handler(commands=['start'])
async def send_welcome(message: types.Message):
await bot.send_message(message.chat.id,"Salom")
if name == '__main__':
executor.start_polling(dp)
Python da /start ga salom degich kod :)
from aiogram import Bot, Dispatcher, types
from aiogram.utils import executor
bot = Bot(token='BOT TOKENI')
dp = Dispatcher(bot)
@dp.message_handler(commands=['start'])
async def send_welcome(message: types.Message):
await bot.send_message(message.chat.id,"Salom")
if name == '__main__':
executor.start_polling(dp)
Python da /start ga salom degich kod :)