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

Still the same problem as before, MessagesCheckChatInvite #59

Closed
Esiarp8 opened this issue Aug 22, 2023 · 4 comments
Closed

Still the same problem as before, MessagesCheckChatInvite #59

Esiarp8 opened this issue Aug 22, 2023 · 4 comments

Comments

@Esiarp8
Copy link

Esiarp8 commented Aug 22, 2023

hello, I tried to use this to get the chat ID but got an address, 0xc0162379a0
This type *telegram.ChatInvite
How do I get what's in the address?
inviteLinkInfo, _ := client.MessagesCheckChatInvite(inviteLink)

@AmarnathCJD
Copy link
Owner

AmarnathCJD commented Aug 23, 2023

That's basic golang :)
link := inviteLinkInfo.(*telegram.ChatInviteObj)

@Esiarp8
Copy link
Author

Esiarp8 commented Aug 23, 2023

What I get is the type of ChatInviteAlready, but only the
&{0xc01b8365a0}
How to get the same as below
(chatInviteAlready (ID: 0x5abcdefg) = (chat=(channel (ID: 0x5abcdefg) = (creator=None, kicked=None, left=None, editor=True, moderator=None, broadcast=True, verified=None, megagroup=None, restricted=None, democracy=None, signatures=None, min=None, id=123456789, access_hash=615xxxxxxxxx, title=testChannel, username=None, photo=(chatPhotoEmpty (ID: 0x37xxxxxxx) = ()), date=2017-06-14 14:34:50, version=0, restriction_reason=None))))

@AmarnathCJD
Copy link
Owner

AmarnathCJD commented Aug 23, 2023

chatInviteAlready.Chat.(*telegram.ChannelObj)

@Esiarp8
Copy link
Author

Esiarp8 commented Aug 23, 2023

chatInviteAlready.Chat.(*telegram.ChannelObj)
thank you haha

@Esiarp8 Esiarp8 closed this as completed Sep 3, 2023
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

2 participants