import os
import telegram
from telegram.ext import Updater, CommandHandler
from telegram import InlineKeyboardMarkup, InlineKeyboardButton

def start(update, context):
    
    
    Button1 = InlineKeyboardButton(
        text='Github',
        url='https://github.com/drewdev02'
    )
    Button2= InlineKeyboardButton(
        text='Me',
        url='https://t.me/Adrewdev'
    )
    
    update.message.reply_text(
        text='Hoy es un gran dia mi vida, usa "/more" para algo especial',
        reply_markup=InlineKeyboardMarkup([
            [Button1, Button2]
        ])
    )

def more(update, context):
    
    Button3 = InlineKeyboardButton(
        text='Tocame, My love',
        url='https://telegra.ph/De-mi-para-ti-por-ser-tu-d%C3%ADa-especial-03-08'    # hacer un post en telegraph
    )
   
    
    update.message.reply_text(
        text='Happy Brithday!!!',
        reply_markup=InlineKeyboardMarkup([
            [Button3]
        ])
    )

if __name__ == '__main__':
    
    token = os.environ['TOKEN']
    
    bot = telegram.Bot(token=token)    
    
    updater = Updater(token=token, use_context=True)
    
    dp = updater.dispatcher

    dp.add_handler(CommandHandler('start', start))
    dp.add_handler(CommandHandler('more', more))
   
    updater.start_polling()
    print('bot is polling')
    updater.idle()
