question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

get chat or chanel id before joining by join hash

See original GitHub issue

I have a lot of join hash links but before join, need to know about channel or chat id i use CheckChatInviteRequest but It does not return this id Is there any way?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
delivrancecommented, Feb 19, 2018

Hi there! Nope, is not possible to get the id/hash pair for private chats or channels via the joinchat link without joining first, all you can do is using messages.CheckChatInvite to get a brief description. You have to pass only the link hash as argument, which is GG4BlQwm19czcBGOewv40Q in your example.

However, if the chat/channel is public (i.e., you have its public username), you can get the id/hash pair by using contacts.ResolveUsername.

Edit: If the channel/group is public and all you have is just an invite link, you can use messages.CheckChatInvite to get the id/hash pair. The returned type will be types.ChatInviteAlready in this case, instead of types.ChatInvite

0reactions
Lonamicommented, Sep 29, 2020

Not sure what I removed but most likely a mention or link to your library because I acted like that back then, but indeed this is extremely old.

In any case, the issues section in GitHub is only to report bugs or enhancements in the library itself. If you have usage questions, you should ask those in StackOverflow or the @TelethonChat group.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to obtain chatid of a private channel by given joinlink ...
1 Answer 1 · 1. @Burzum the channel hash is the one at the end of the url you sent. · 1. @Burzum...
Read more >
Working with Chats and Channels - Telethon
If you don't need to join but rather check whether it's a group or a channel, you can use the CheckChatInviteRequest, which takes...
Read more >
AskTOM Office Hours: Hash Joins and Database In-Memory
Held on April 20 2018Andy Rivenes (@TheInMemoryGuy) and Maria Colgan (@SQLMaria) focused on a deep dive into hash joins and how they are ......
Read more >
Send a message in Teams using Power Automate
You can use Power Automate to set up a flow that sends messages to a Teams Channel or group chat using the Microsoft...
Read more >
messages.importChatInvite - Telegram APIs
Code Type Description 400 CHANNELS_TOO_MUCH You have joined too many channels/supergroups. 400 CHANNEL_INVALID The provided channel is invalid. 400 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found