[REQUEST] Integration: Telegram user bot (MTProto)

Open
#3,519 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript

Research direction

Start with the linked MTProto documentation, TL schema, and Telegram API methods, then compare them with Sim’s existing Telegram Bot API integration. Done means workflows can authenticate with each user’s API ID and API hash and support the requested user-side actions without shared credentials.

Written by the indexing model from the issue text.

Description

feature

Is your feature request related to a problem? Please describe.
Sim’s Telegram integration is Bot API only. There’s no way to use the user API (MTProto) from workflows — e.g. send/receive as a user, use full chats/channels/media. People who need user-bot behaviour have to use workarounds (e.g. HTTP blocks to third‑party services) instead of a native Sim block.

Describe the solution you'd like
Add an integration for a Telegram user bot (MTProto) so workflows can call the user API. Auth via my.telegram.org: users create an app and configure their own API ID and API hash (no shared/hardcoded credentials). Store API ID / API hash in env or integration settings.

Describe alternatives you've considered
Using only the Bot API: doesn’t cover user-side actions (e.g. read DMs, act as user).
Calling external user-bot APIs via HTTP blocks: possible but no native block, no unified credentials, more glue code.

Additional context
API methods: https://core.telegram.org/methods
TL schema: https://core.telegram.org/schema/mtproto
MTProto: https://core.telegram.org/mtproto

Dominant language
TypeScript
Stars
29.8k
Forks
3.9k
Avg merge
1h 43m
Merged PRs (30d)
937

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from simstudioai/sim

All issues in simstudioai/sim

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.