Component evidence

Telegram Chat Action Enums (enums/chat_action.py)

aiogram · aiogram/enums/chat_action.py · python · MIT
chatlang:pythontag:enums

Defines standard Telegram bot chat action enums like typing and uploading media. Use when sending status indicators for bot interactions.

Source preview first 800 characters · full source over MCP
# Source: https://github.com/aiogram/aiogram | License: MIT | Copyright 2017 - present Alex Root Junior
# Provided via justclaw.it.com; keep this notice with the code.
from enum import Enum


class ChatAction(str, Enum):
    """
    This object represents bot actions.

    Choose one, depending on what the user is about to receive:

    - typing for text messages,
    - upload_photo for photos,
    - record_video or upload_video for videos,
    - record_voice or upload_voice for voice notes,
    - upload_document for general files,
    - choose_sticker for stickers,
    - find_location for location data,
    - record_video_note or upload_video_note for video notes.

    Source: https://core.telegram.org/bots/api#sendchataction
    """

    TYPING = "typing"
    UPLOAD_PHOTO = "upload_photo

... (truncated -- full source via MCP)