Esempio n. 1
0
def setname(bot, update):
    txt = update.message.text.split()
    if len(txt) > 9:
        name = update.message.text[10:]
        usermanager.setname(update.message.chat_id, name)

        bot.sendMessage(update.message.chat_id, text='Ну хорошо')
Esempio n. 2
0
def setname(bot, update):

	txt = update.message.text
	if len(txt) > len('/setname'):
		statistics.track(update.message.chat_id, update.message, 'Setname')
		
		name = txt[len('/setname')+1:]
		usermanager.setname(update.message.chat_id, name)

		bot.sendMessage(update.message.chat_id, text='Ну хорошо')
Esempio n. 3
0
def setname(bot, update):

	txt = update.message.text
	if len(txt) > len('/setname'):
		statistics.track(update.message.chat_id, update.message, 'Setname')
		
		name = txt[len('/setname')+1:]
		usermanager.setname(update.message.chat_id, name)

		bot.sendMessage(update.message.chat_id, text='Ну хорошо')