@bot.message_handler(regexp='Go Go Go')@bot.message_handler(content_types=['text'])
def text_handler(message):
if message.text == 'Go Go Go':
p = open. ... b1 = But(self.root, 1)
b2 = But(self.root, 2)
del b1
del b2del объект if resp.ok:
ourJSON = resp.json()@bot.callback_query_handler(func=lambda call: True)
def query_handler(call):
if call.data == 'save':
call.message.text # это и есть та ссылка на картинку
Но вижу у вас ошибка указывает на то, что сам msg.photo = None, я навскидку не вижу, почему могло так получится при этом коде.