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

16 lines
872 B
Python
Raw Normal View History

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",
2020-11-07 15:34:03 +01:00
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("📝 Create a new certificate",
callback_data="new")],
2020-11-07 15:34:03 +01:00
[InlineKeyboardButton("⚙️ Manage saved data",
callback_data="data")]
]))
start_handler = CommandHandler("start", start)