asafespace/logic.py
def username_command(bot, user):
    """
    Sends the username to the user

    Parameters
    ----------
    bot: Telegram both object
    user: dic
        Represents a user
    """
    
    chat_id = user["chat_id"]
    username = user["username"]
    bot.send_message(chat_id=chat_id, text=USERNAME_MESSAGE+username)
    logger.info("User request for username successfully executed.")

    Sends the username to the user

    Parameters
    ----------
    bot: Telegram both object
    user: dic
        Represents a user
    
Sends the username to the user
Parameters

Telegram both object
user: dic
Represents a user
Sends the username to the user Parameters Telegram both object user : dic Represents a user
def username_command(bot, user):
    chat_id = user["chat_id"]
    username = user["username"]
    bot.send_message(chat_id=chat_id, text=USERNAME_MESSAGE+username)
    logger.info("User request for username successfully executed.")
def username_command ( bot , user ) : chat_id = user [ "chat_id" ] username = user [ "username" ] bot . send_message ( chat_id = chat_id , text = USERNAME_MESSAGE + username ) logger . info ( "User request for username successfully executed." )
Sends the username to the user
Parameters
Sends the username to the user Parameters
"""
    Sends the username to the user

    Parameters
    ----------
    bot: Telegram both object
    user: dic
        Represents a user
    """
bot
user