TransformerOptimus / SuperAGI

<⚡️> SuperAGI - A dev-first open source autonomous AI agent framework. Enabling developers to build, manage & run useful autonomous agents quickly and reliably.
https://superagi.com/
MIT License
15.27k stars 1.84k forks source link

Telegram Toolkit [Feature Request] #1196

Open ilyamk opened 1 year ago

ilyamk commented 1 year ago

⚠️ Check for existing issues before proceeding. ⚠️

Where are you using SuperAGI?

MacOS

Which branch of SuperAGI are you using?

Main

Do you use OpenAI GPT-3.5 or GPT-4?

GPT-4(32k)

Which area covers your issue best?

Tools

Describe your issue.

This document outlines the features that can be added to the SuperAGI application to enable interaction with a Telegram account using a Telegram Toolkit. It provides the technical framework for integrating and operating various features in a Telegram bot with the SuperAGI application. The toolkit aims to offer functionalities such as message sending, receiving, managing chats, and more.

Requested Features:

1. Account Authentication

Description Enables SuperAGI to authenticate the Telegram user account.

API Methods getMe

Workflow User inputs Telegram API token. Validate token by calling getMe.

2. Sending Messages

Description Send text and multimedia messages to individual users or groups.

API Methods

sendMessage
sendPhoto
sendAudio
sendVideo

Workflow Get chat ID. Prepare message or media. Call the appropriate API method.

3. Receiving Messages

Description Receive and process incoming messages from individual users or groups.

API Methods

getUpdates
setWebhook

Workflow Poll for new messages or set up a webhook. Process incoming message data.

4. Inline Keyboard and Custom Commands

Description Customize the chat interface with buttons and slash commands.

API Methods sendMessage with InlineKeyboardMarkup

Workflow Create inline keyboard object. Attach to a message. Implement custom command functions.

5. File Handling

Description Send, receive, and process files like documents, spreadsheets, etc.

API Methods

sendDocument
getFile

Workflow Get chat ID. Prepare file. Call appropriate API method.

6. Chat Analysis

Description Analyze chat history and user behavior.

API Methods

getChat
getChatMembers

Workflow Get chat history and members. Run analytics functions.

How to replicate your Issue?

No

Upload Error Log Content

No

cognitivebot commented 1 year ago

Hey @ilyamk This looks useful, thank you for the suggestion I've passed your request on to the team

pioneerHitesh commented 11 months ago

@coder5492 @TransformerOptimus I would like to contribute to this , may you assign this to me?

fafa341 commented 8 months ago

Whats the update on this? Really interesting feature.