Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
teleexit/commands/start.py
2020-11-07 15:34:47 +01:00

15 lines
872 B
Python

from telegram import Update, InlineKeyboardMarkup, InlineKeyboardButton
from telegram.ext import CallbackContext, CommandHandler
def start(update: Update, context: CallbackContext):
context.bot.send_message(chat_id=update.effective_chat.id,
text="Welcome to TeleExit",
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("📝 Create a new certificate",
callback_data="new")],
[InlineKeyboardButton("⚙️ Manage saved data",
callback_data="data")]
]))
start_handler = CommandHandler("start", start)