Xabarlarni taxririlash
Misol
import telebot
bot = telebot.TeleBot("TOKEN")
@bot.message_handler(commands=['start'])
def start(message):
global msg_id
msg_id = bot.send_message(
chat_id=message.chat.id,
text="Birinchi text"
).message_id
print(msg_id)
@bot.message_handler(commands=['edit'])
def start(message):
print(msg_id)
bot.edit_message_text(
chat_id=message.chat.id,
text="Yangi text",
message_id=msg_id
)