import aiogram
from aiogram import types
bot: aiogram.Bot = None
async def main(message: types.Message):
markup = types.ReplyKeyboardRemove()
return await bot.send_message(message.from_user.id, 'text', markup=markup)
markup = types.ReplyKeyboardMarkup(one_time_keyboard=True)
CHANNEL_ID = 0 # Some ID
@bot.callback_query_handler(func=lambda call: True)
def iq_callback(call: types.CallbackQuery):
if call.data == 'choice_clear':
# Some code to clear
return
msg: types.Message = call.message
if msg.content_type == 'text':
bot.send_message(CHANNEL_ID, msg.text)
elif msg.content_type == 'photo':
bot.send_photo(CHANNEL_ID, msg.photo[0].file_id, msg.caption)