bot.py
def visible(bot, update):
    """send the visible passes for today"""
    update.message.reply_text('Calculating and sending todays visble passes')

    cords =[['6.5490 N','72.9534 E','vaikaradhoo'],['6.1497 N','73.2905 E','Funadhoo']]

    all_passes = []

    passes_morning = (get_passes(240,420,cords[1],date.today()))
    passes_evening = (get_passes(1050,1170,cords[1],date.today()))

    all_passes = passes_morning + passes_evening

    if len(all_passes) > 0:
        send(bot, all_passes)

    else:
        update.message.reply_text("No visible passes found for today")
send the visible passes for today
send the visible passes for today
send the visible passes for today
def visible(bot, update):
    update.message.reply_text('Calculating and sending todays visble passes')
    cords =[['6.5490 N','72.9534 E','vaikaradhoo'],['6.1497 N','73.2905 E','Funadhoo']]
    all_passes = []
    passes_morning = (get_passes(240,420,cords[1],date.today()))
    passes_evening = (get_passes(1050,1170,cords[1],date.today()))
    all_passes = passes_morning + passes_evening
    if len(all_passes) > 0:
        send(bot, all_passes)
    else:
        update.message.reply_text("No visible passes found for today")
def visible ( bot , update ) : update . message . reply_text ( 'Calculating and sending todays visble passes' ) cords = [ [ '6.5490 N' , '72.9534 E' , 'vaikaradhoo' ] , [ '6.1497 N' , '73.2905 E' , 'Funadhoo' ] ] all_passes = [ ] passes_morning = ( get_passes ( 240 , 420 , cords [ 1 ] , date . today ( ) ) ) passes_evening = ( get_passes ( 1050 , 1170 , cords [ 1 ] , date . today ( ) ) ) all_passes = passes_morning + passes_evening if len ( all_passes ) > 0 : send ( bot , all_passes ) else : update . message . reply_text ( "No visible passes found for today" )
send the visible passes for today
send the visible passes for today
"""send the visible passes for today"""
bot
update