I
I
igor_filippov20162020-01-21 09:50:50
Python
igor_filippov2016, 2020-01-21 09:50:50

Writing an echo-Telebot?

Downloaded the module from here https://pypi.org/project/pyTelegramBotAPI/0.3.0/
Used https://github.com/eternnoir/pyTelegramBotAPI
#Telegram bot
import telebot
a = input(a)
bot = telebot.TeleBot("API ")
b = input(b)
@bot.message_handler(content_types=['text'])
def send_echo(message):
bot.reply_to(message, message.text)
bot.polling (none_stop = True)
5e269f055f8a2893159379.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-01-21
@igor_filippov2016

Python version must be at least 3.6

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question