def process(self, bot, update):
if update.message.text == 'Yes':
print('Trying to send a mail')
print(self.email.__dict__)
send_email(self.email)
bot.send_message(chat_id=update.message.chat_id, text='Okay, I have sent the mail successfully.',
reply_markup=telegram.ReplyKeyboardRemove())
else:
bot.send_message(chat_id=update.message.chat_id, text='Okay, I will not send a mail.',
reply_markup=telegram.ReplyKeyboardRemove())
self.is_done_ = True
评论列表
文章目录