21 lines
656 B
Python
21 lines
656 B
Python
from telegram import Bot, InlineKeyboardButton, InlineKeyboardMarkup, Update
|
|
from telegram.ext import ApplicationBuilder, CommandHandler, ContextTypes
|
|
import configparser
|
|
import json
|
|
import os
|
|
import datetime
|
|
import shutil
|
|
|
|
# Function to send a message with inline buttons
|
|
async def newEvent(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
|
keyboard = [
|
|
[InlineKeyboardButton("Anmelden", callback_data='register')],
|
|
[InlineKeyboardButton("Abmelden", callback_data='cancelRegister')]
|
|
]
|
|
|
|
reply_markup = InlineKeyboardMarkup(keyboard)
|
|
|
|
await update.message.reply_text("choose below", reply_markup=reply_markup)
|
|
return
|
|
|