[REQUEST] Integration: Telegram user bot (MTProto)

Đang mở
#3,519 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
api, authentication, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
29.8k
Fork
3.9k
Merge trung bình
1 giờ 44 phút
Pull request đã merge (30 ngày)
841

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của simstudioai/sim

Tất cả issue của simstudioai/sim

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.