Created
January 22, 2018 14:44
-
-
Save TiagoDanin/c7d7c7ee2cf0950597a3b67ea9630c14 to your computer and use it in GitHub Desktop.
Exemplo de como editar mensagem usando o pyTelegramBotAPI(Telebot)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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