Answer the question
In order to leave comments, you need to log in
Does a bot in telegram in python give an error?
Such bullshit
import telebot
from telebot import types
bot = telebot.Telebot('ТУТ МОЙ ТОКЕН')
@bot.message_handler(content_types=['text'])
def buttons(message):
markup = types.KeyboardMarkup (resize_keyboard = True)
butt1 = types.KeyboardButton ('ПОЛУЧИТЬ ДЕНЬГИ')
butt2 = types.KeyboardButton ('БОНУС')
markup.add(butt1, butt2)
if message.text == "ПОЛУЧИТЬ ДЕНЬГИ":
bot.send_message(message.chat.id, 'Подпищись на наш канал @telegram')
elif message.text == "БОНУС":
bot.send_message(message.chat.id, 'Бонусов нету (')
bot.polling(none_stop = True)
Answer the question
In order to leave comments, you need to log in
not
a
bot = telebot.Telebot('ТУТ МОЙ ТОКЕН')
bot = telebot.TeleBot('ТУТ МОЙ ТОКЕН')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question