Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting user access_hash #14

Open
ghost opened this issue Apr 28, 2014 · 8 comments
Open

Getting user access_hash #14

ghost opened this issue Apr 28, 2014 · 8 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2014

Hi

I'm developing some customer service bot. People send Telegram messages to the service and the service needs to auto reply. But these people are not in the contact list of the service so I need to use TLInputPeerForeign to send a message to them. On receiving a message I can see the user_id but not the access_hash. How can I get the access_hash of a user?

Thx

@alexkvak
Copy link

alexkvak commented Sep 5, 2014

You should use https://core.telegram.org/method/messages.getDialogs method.
It returns you users list
2014-09-05 17 41 28

@lkraider
Copy link

lkraider commented Nov 6, 2014

Related: How would I get the user access_hash for a UserForeign request if I have just the user_id and no message? (say I want to start a chat with a user not in contact list)

@alexkvak
Copy link

alexkvak commented Nov 9, 2014

You cannot start chat with user not from contact list. You should add it to contact list first.

@hamidullayev
Copy link

Hi. How i can convert TLAbsUpdates to Dialogs

@alexkvak
Copy link

Hi. How i can convert TLAbsUpdates to Dialogs

What dialogs?

@Raakh
Copy link

Raakh commented Sep 19, 2015

Can you please send me compiled working code to my email ghayel@gmail.com? I shall be grateful to you

@Pro-Ton
Copy link

Pro-Ton commented Nov 9, 2016

Hi,
How can we get channels messages without joining it (and so it wouldn't be added to the user's Dialogs)?
It's possible in the telegrams' apps, when you click on a channels username any where (@channel_user).

@alexpts
Copy link

alexpts commented Mar 31, 2021

How get access_hash for supergroup via bot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants