Beispiel #1
0
def send_instachica(message):
	chat_id = message.chat.id
	aleatorio=str(random.randint(1, 18))
	user_dict[chat_id] = aleatorio
	photo = open('/Users/Juanra/Desktop/chicas/'+aleatorio+'.jpeg', 'rb')  
	markup=types.ReplyKeyboardMarkup()
	markup.add('1','2', '3', '4', '5')
	msg=bot.send_photo(chat_id, photo, reply_markup=markup)
	#registra el numero ultimo es como un scanf
	bot.register_next_step_handler(msg, process_name_step)
Beispiel #2
0
def send_juanra(message):
	chat_id = message.chat.id
	photo = open('/Users/Juanra/Desktop/Juanra/juanra.jpg', 'rb')  
	bot.send_photo(chat_id, photo)