23 lines
594 B
Python
23 lines
594 B
Python
# Work in Progress
|
|
# Api-Key: 5228016873:AAGFrh0P6brag7oD3gxXjCh5gnLLE8JMvMs
|
|
# text bot at t.me/projektaktienbot
|
|
# API Documentation https://core.telegram.org/bots/api
|
|
# Code examples https://github.com/eternnoir/pyTelegramBotAPI#getting-started
|
|
import os
|
|
import telebot
|
|
|
|
bot = telebot.TeleBot(os.getenv('BOT_API_KEY'))
|
|
|
|
|
|
@bot.message_handler(commands=['start', 'help'])
|
|
def send_welcome(message):
|
|
bot.reply_to(message, "Thank you for using this bot")
|
|
|
|
|
|
@bot.message_handler(func=lambda message: True)
|
|
def echo_all(message):
|
|
bot.reply_to(message, message.text)
|
|
|
|
|
|
bot.infinity_polling()
|