Demo entry 6361207

df

   

Submitted by vf on May 03, 2017 at 22:16
Language: Python 3. Code size: 808 Bytes.

import Math
import os

def my_func(x):
       c = 2 + x
@bot.message_handler(commands=['start'])
def handle_start(message):
    user_markup = telebot.types.ReplyKeyboardMarkup(True, False)
    user_markup.row('/start','/stop')
    user_markup.row('photo', 'мелкие', 'большие')
    user_markup.row('Стикер', 'Видео', 'Голос', 'Локация')
    bot.send_message(message.from_user.id, "Good morning", reply_markup=user_markup)

@bot.message_handler(commands=['stop'])
def handle_start(message):
    hide_markup = telebot.types.ReplyKeyboardRemove()
    bot.send_message(message.from_user.id, "good luck..", reply_markup=hide_markup)
def factorial(x):
    c = 1
    if x == 1:
        c = 1
    elif 1 != x > 0:
        for i in range(x):
            c *= int(x)

    print(c)
    return c

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).