telethonchat | Unsorted

Telegram-канал telethonchat - Telethon Chat

6097

Official Telethon's chat! Rules: • Speak English • Stay on topic (questions about Telethon) • Be respectful • Don't ask to ask • Spam-related uses lead to ban • Read https://docs.telethon.dev before asking things here Read more about us @TelethonUpdates

Subscribe to a channel

Telethon Chat

.session files are stolen accounts from "stealer logs" don't buy them, the seller can log you out of the session and the owner of the number can delete the account

maybe upload the script and let others see the problem

Читать полностью…

Telethon Chat

Documentation for get_peer_id

Читать полностью…

Telethon Chat

you really one of the my legends thanks brother , i will help you in repo , by PR , just working on my projects nowadays im living on pressure

Читать полностью…

Telethon Chat

thanks a lot , i will donate you how i can send you cup of coffeee

Читать полностью…

Telethon Chat

so both just search localy! im looking for a way to simulate click on profile , users mostly dont seen or have group in common

Читать полностью…

Telethon Chat

no, it's either of the two.

that link is only for locally searching corresponding dialog with that id, so if the app never seen that user, it won't open it, regardless of forward privacy rules

Читать полностью…

Telethon Chat

your opentele isn't a good sign, but yeah, either a telethon bug in event handling that puts an UpdateEditChannelMessage to unrelated requests like forwarding or sending messages, or your current setup induces it, try on a fresh script and same variables passed to requests

but again it's ignorable, unless you need the object of the method return, aka the Message object after it's sent, you can patch the parser to ignore it

Читать полностью…

Telethon Chat

you in telegram developers team? how you know all this shits

Читать полностью…

Telethon Chat

yeah, tg://openmessage?user_id/chat_id is android thing

Читать полностью…

Telethon Chat

and its not work for desktop version?

Читать полностью…

Telethon Chat

it needs a proper object. if you're passing it an integer id, make it types.PeerChannel(id)

but it's pointless to use if you already know the type, just do -100id yourself

Читать полностью…

Telethon Chat

client.get_peer_id() returns the same id without -100

Читать полностью…

Telethon Chat

we using tg://openmessage to mention users but some of links dont work , and some others work perfectly , can anyone guide me why its happen? and if its not possible to find why , let me know how can find its after click not open links , thanks alot, recently i use check forward limit privicy to check it possible or not but its not about this

Читать полностью…

Telethon Chat

they're the same thing, just pass it to /channel/TelethonChat/631913 as usual

you could do prepend that manually too, as long as you already know the type being PeerChannel

Читать полностью…

Telethon Chat

Then no, only if you're joined

Читать полностью…

Telethon Chat

I made my first script on telethon. I log in with my real phone number. But when I run the script, I get thrown out of all my open sessions (phone and computer). How to deal with it? I'm not a scammer, I just want to upload messages from several groups for analysis, I need to work. I saw that accounts are sold online in the form of *.session files. Would it help if I use them?

Читать полностью…

Telethon Chat

If I wanted to get the peer id using the username, I would use await client.get_peer_id
If I wanted to convert the id to peer id, I would use utils.get_peer_id

Did I understand correctly?

Читать полностью…

Telethon Chat

no worries, just ask questions and report issues in library and praise Lonami for creating the library, that's enough return for this chat

Читать полностью…

Telethon Chat

only tg://user links are not local, it's done in server after telethon parses the user id, but will only work based on forward privacy as you mentioned.

no other way to share a user

Читать полностью…

Telethon Chat

unimportant but await could be considered a waste here since it's locally done, telethon.utils.get_peer_id will do fine. client variant is useful if you pass usernames etc that need to make request

Читать полностью…

Telethon Chat

Thanks, it worked:

peer_id = await client.get_peer_id(PeerChannel(id))

Читать полностью…

Telethon Chat

Has Telegram updated something? An error started popping up when posting posts(

And not on all posts, a bug?
https://dpaste.org/D4DDp

Читать полностью…

Telethon Chat

did any way use both in one?

Читать полностью…

Telethon Chat

it's a var, of channel message id

Читать полностью…

Telethon Chat

thanks a lot ms ⎞ .·. ⎝

Читать полностью…

Telethon Chat

And the channel_post_id is a variable or event class?

Читать полностью…

Telethon Chat

that uri is client side. use the proper tg://user?id=user_id hyperlink

Читать полностью…

Telethon Chat

No, once you find the sender_id in a message, you can message them in private, with the same account that got the message, and as long as you don't delete the .session file

Читать полностью…

Telethon Chat

Isn't there a way to make KeyboardButtonRequestPeer return the channel id with -100?😢

Читать полностью…

Telethon Chat

it may be a bug, somehow your forward triggered edited message, so parsing of response failed, but it's safe to ignore

and prefer a paste for large output https://dpaste.org/ExauE

Читать полностью…
Subscribe to a channel