Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import telebot
- from telebot.types import ReplyKeyboardRemove
- import time
- TELEGRAM_TOKEN = <token>
- bot = telebot.TeleBot(TELEGRAM_TOKEN)
- @bot.message_handler(commands=["start"])
- def cmd_start(m):
- msg = bot.send_message(m.chat.id, "test", reply_markup=ReplyKeyboardRemove())
- time.sleep(2)
- bot.edit_message_text(text="message edited", chat_id=msg.chat.id, message_id=msg.message_id)
- if __name__ == '__main__':
- bot.infinity_polling()
Advertisement
Add Comment
Please, Sign In to add comment