Coder Social home page Coder Social logo

Chat not found 400 about td HOT 10 CLOSED

LsdLucifer avatar LsdLucifer commented on June 28, 2024
Chat not found 400

from td.

Comments (10)

LsdLucifer avatar LsdLucifer commented on June 28, 2024

Can I somehow retrieve data about groups (chats) from another user-bot's db.sqlite for my new user-bot?

from td.

levlam avatar levlam commented on June 28, 2024

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.

LsdLucifer avatar LsdLucifer commented on June 28, 2024

@levlam How can I implement functionality for my program to automatically join a group and subscribe to it?

from td.

levlam avatar levlam commented on June 28, 2024

You need to do exactly the same actions as you would do in a Telegram app.

from td.

LsdLucifer avatar LsdLucifer commented on June 28, 2024

@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.

levlam avatar levlam commented on June 28, 2024

You must do the same actions with appropriate methods.

from td.

LsdLucifer avatar LsdLucifer commented on June 28, 2024

@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.

levlam avatar levlam commented on June 28, 2024

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.

LsdLucifer avatar LsdLucifer commented on June 28, 2024

@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.

levlam avatar levlam commented on June 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.