@bot.message_handler(content_types=['text'])
def inline_key(a):
if a.text == "/start":
@bot.message_handler(commands=['start'])
def inline_key(a):
If the file is already stored somewhere on the Telegram servers, you don't need to reupload it: each file object has a file_id field, simply pass this file_id as a parameter instead of uploading. There are no limits for files sent this way.