@dp.message_handler(commands=['start', 'help'])
async def send_welcome(message: types.Message):
user_channel_status = await bot.get_chat_member(chat_id='', user_id=message.from_user.id)
await message.reply("Hi!\nI'm EchoBot!\nPowered by aiogram.")
if user_channel_status["status"] != 'left':
await message.reply("Hi!\nI'm EchoBot!\nPowered by aiogram.")
else:
await message.reply("Hi!\nI'm EchoBot!\nPowered by aiogram.")
@dp.message_handler(commands=['start', 'help'])
async def send_welcome(message: types.Message):
user_channel_status = await bot.get_chat_member(chat_id=message.chat.id, user_id=message.from_user.id)
await message.reply("Hi!\nI'm EchoBot!\nPowered by aiogram.")
if user_channel_status["status"] != 'left':
await message.reply("Hi!\nI'm EchoBot!\nPowered by aiogram.")
else:
await message.reply("Hi!\nI'm EchoBot!\nPowered by aiogram.")