bot.py
def send_gif(update: Update, context: CallbackContext, url: str) -> None:
    """
    Aux func to send GIFs.

    :param update: represents an incoming update
    :param context: context of the processed message
    :param url: url of the GIF
    :return: None
    """
    chat = update.effective_chat
    try:
        context.bot.send_animation(chat_id=chat.id, animation=open(url, "rb"))
        message = "Отправьте новое изображение либо выберите одну из команд: "
        keyboard = get_GIFS_keyboard
        reply_markup = InlineKeyboardMarkup(keyboard)
        context.bot.send_message(
            chat_id=chat.id,
            text=message,
            reply_markup=reply_markup,
        )
    except Exception as e:
        logger.exception(e)

    Aux func to send GIFs.

    :param update: represents an incoming update
    :param context: context of the processed message
    :param url: url of the GIF
    :return: None
    
Aux func to send GIFs.
Aux func to send GIFs .
def send_gif(update: Update, context: CallbackContext, url: str) -> None:
    chat = update.effective_chat
    try:
        context.bot.send_animation(chat_id=chat.id, animation=open(url, "rb"))
        message = "Отправьте новое изображение либо выберите одну из команд: "
        keyboard = get_GIFS_keyboard
        reply_markup = InlineKeyboardMarkup(keyboard)
        context.bot.send_message(
            chat_id=chat.id,
            text=message,
            reply_markup=reply_markup,
        )
    except Exception as e:
        logger.exception(e)
def send_gif ( update : Update , context : CallbackContext , url : str ) -> None : chat = update . effective_chat try : context . bot . send_animation ( chat_id = chat . id , animation = open ( url , "rb" ) ) message = "Отправьте новое изображение либо выберите одну из команд: " keyboard = get_GIFS_keyboard reply_markup = InlineKeyboardMarkup ( keyboard ) context . bot . send_message ( chat_id = chat . id , text = message , reply_markup = reply_markup , ) except Exception as e : logger . exception ( e )
Aux func to send GIFs.
Aux func to send GIFs .
"""
    Aux func to send GIFs.

    :param update: represents an incoming update
    :param context: context of the processed message
    :param url: url of the GIF
    :return: None
    """
None
update
Update
represents an incoming update
represents an incoming update
context
CallbackContext
context of the processed message
context of the processed message
url
str
url of the GIF
url of the GIF