agentconnect.agents.telegram.states module

State management classes for the Telegram agent.

This module contains FSM (Finite State Machine) state classes used for managing various workflows in the Telegram agent, like announcement creation.

class AnnouncementStates

Bases: StatesGroup

States for announcement creation workflow.

waiting_for_text = <State 'AnnouncementStates:waiting_for_text'>
Parameters:
  • event (TelegramObject)

  • raw_state (str | None)

Return type:

bool

editing_text = <State 'AnnouncementStates:editing_text'>
Parameters:
  • event (TelegramObject)

  • raw_state (str | None)

Return type:

bool