Comments (10)
Can I somehow retrieve data about groups (chats) from another user-bot's db.sqlite for my new user-bot?
from td.
No. You can't access chats by their identifier. You must find them in the same way as you would do in any Telegram app.
from td.
@levlam How can I implement functionality for my program to automatically join a group and subscribe to it?
from td.
You need to do exactly the same actions as you would do in a Telegram app.
from td.
@levlam Why does TdApi.JoinChat even exist then? I want my program to add a user to a group. How can I do that? I'm not interested in doing it manually through Telegram.
from td.
You must do the same actions with appropriate methods.
from td.
@levlam When I use this method, I get a 400 error 'chat not found,' as I mentioned above. Please provide an example of using this method.
from td.
You don't enter chat identifier in apps. You must find the chat first in the same way you do in the apps.
from td.
@levlam I understand. You're suggesting that I manually enter the Telegram app and join the group. However, I have a link and a chat ID for the group. I want to join it automatically without opening Telegram. How can I use tdlib Java to join groups using their links or chat IDs? Ideally, I'd like to join via a regular link. (I've been able to join using invitation links, but I need to join the group via a regular link).
from td.
No, I suggest that you call the same methods, you would use in any other app.
Any internal link can be processed using getInternalLinkType
and following documentation for the returned object.
from td.
Related Issues (20)
- Program Bug Bounty
- Th
- Build tdlib on Windows: cannot open include file: 'td/mtproto/mtproto_api.h': No such file or directory HOT 3
- tdlib Java example on Windows: fatal error on the latest build (f013f47) HOT 16
- "Request is empty" Error When running the Java TDLib Application HOT 5
- Firebase cloud messages current protocol will be removed this month HOT 2
- Use of deleted function when casting update_new_message to messagePhoto(trying to get caption) HOT 3
- How to destroy an object created by td_create_client_id HOT 1
- Application goes down with error: database disk image is malformed for database HOT 1
- Tonkif
- Account getting banned after successful login using phone code or qr code HOT 6
- Лежим прямо сейчас. Почините уже.
- example/cpp/td_example.cpp can not run, td/telegram/td_api.h can not found HOT 1
- The updateNewMessage event is not triggered unless you enter the message in the Telegram application and see it. HOT 14
- Is there a way to send function packget in telegram_api.tl directly? HOT 1
- Build failed HOT 1
- Download file getting Error 400: File download has failed or was canceled HOT 3
- Client seems to stop receiving most updates after some time in operation HOT 1
- Mon numero est 15814810947
- Bot Answering Chat Join Requests Conditions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from td.