controllers/parse_message.py
def parse_handler(user_id, username, message):
    '''
    Passes on the user request to the specific controller
    ARGUMENTS:
    message: string
    RETURN TYPE: void
    '''
    # Initialisation of bot
    command = message.split(' ')[0][1:]
    arguments = message.split(' ')[1:] if len(message.split(' ')) > 1 else None

    # Logging
    logger.command_run(message, username, user_id)

    try:
        if command == "time":
            paybot.sendMessage(user_id, getTime(), parse_mode= 'Markdown')  
        else:
            paybot.sendMessage(user_id, "Invalid Command")

    except Exception as e:
        message_admins(e, user_id, username, message)
        logger.warning(e)

    Passes on the user request to the specific controller
    ARGUMENTS:
    message: string
    RETURN TYPE: void
    
Passes on the user request to the specific controller
ARGUMENTS:
message: string
RETURN TYPE: void
Passes on the user request to the specific controller ARGUMENTS : message : string RETURN TYPE : void
def parse_handler(user_id, username, message):
    command = message.split(' ')[0][1:]
    arguments = message.split(' ')[1:] if len(message.split(' ')) > 1 else None
    logger.command_run(message, username, user_id)
    try:
        if command == "time":
            paybot.sendMessage(user_id, getTime(), parse_mode= 'Markdown')  
        else:
            paybot.sendMessage(user_id, "Invalid Command")
    except Exception as e:
        message_admins(e, user_id, username, message)
        logger.warning(e)
def parse_handler ( user_id , username , message ) : command = message . split ( ' ' ) [ 0 ] [ 1 : ] arguments = message . split ( ' ' ) [ 1 : ] if len ( message . split ( ' ' ) ) > 1 else None logger . command_run ( message , username , user_id ) try : if command == "time" : paybot . sendMessage ( user_id , getTime ( ) , parse_mode = 'Markdown' ) else : paybot . sendMessage ( user_id , "Invalid Command" ) except Exception as e : message_admins ( e , user_id , username , message ) logger . warning ( e )
Passes on the user request to the specific controller
ARGUMENTS:
message: string
RETURN TYPE: void
Passes on the user request to the specific controller ARGUMENTS : message : string RETURN TYPE : void
'''
    Passes on the user request to the specific controller
    ARGUMENTS:
    message: string
    RETURN TYPE: void
    ''' # Initialisation of bot # Logging
user_id
username
message