Skip to content

Instantly share code, notes, and snippets.

@TiagoDanin
Created January 22, 2018 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TiagoDanin/c7d7c7ee2cf0950597a3b67ea9630c14 to your computer and use it in GitHub Desktop.
Save TiagoDanin/c7d7c7ee2cf0950597a3b67ea9630c14 to your computer and use it in GitHub Desktop.
Exemplo de como editar mensagem usando o pyTelegramBotAPI(Telebot)
import telebot
bot = telebot.TeleBot("")
chat_id = ""
data = bot.send_message(chat_id, "Isso é um texto")
#edit_message_text(self, text, chat_id=None, message_id=None, inline_message_id=None, parse_mode=None, disable_web_page_preview=None, reply_markup=None)
if data:
bot.edit_message_text("Isso é um novo texto", data.chat.id, data.message_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment