TelegramAgent
can help you.
TelegramAgent
can:
has_writing_instructions
to False
when creating the agent.
TelegramAgent
has two in-built tools that it will call upon as it needs:
Find out more about these tools and how you can add them to your own AG2 agents in the Telegram Tools documentation.
TelegramAgent
requires authentication (API ID and hash) and target Bot/Group/Channel details in order to send/retrieve messages.
The TelegramAgent
is different to the DiscordAgent and SlackAgent in that you can send/retrieve messages to/from a bot channel, a group channel, a channel, or even your own private channel. This is all handled by giving the respective ID to the chat_id
parameter when creating the agent.
Here’s how to establish your API ID and Hash:
If you want to create a bot, which is optional but allows you to send messages to the bot channel:
/newbot
chat_id
s you can send to:
Saved Messages
)