1) If I get user_id, "contacts.resolveUsername # bf0131c" and search on the string "channel", I get user_id = 0x0827ac18
But, if you send it to messages.getFullChat # 3b831c66, then you get the error "PEER_ID_INVALID". And, if I send, if users.getFullUser # ca30a5b1, then I get the error {"USER_ID_INVALID"}.
2) If I search for the string "channel" using contacts.search # 11f812d8, then I get two users with the username "ChannelBot" and "Channel_Bot", but I do not get with the username or channel "channel".
How to get the channel id to use in messages.getFullChat # 3b831c66? How to get chat_id by name?
telegram
Skyn
source share