site-packages\telebot
@client.on(events.NewMessage())
async def main(event):
if event.message.media:
event.message.message = f'old caption: {event.message.message} + new caption'
await client.send_file('me', file=event.message.media, caption=event.message.message)
event.message.message = event.message.message + 'мир'
@bot.message_handler(content_types=['text'])
def func1(message):
print('func1')
@bot.message_handler(content_types=['text'])
def func2(message):
print('func2')
@bot.message_handler(content_types=['text'])
def func1(message):
print('func1')
print('func2')