id is 1786995317 how can i know this is for user or bot or channel?
i know for group and channels -100 is befor chat id
but sometime -100 is not how can i know the type?
Documentation for get_input_entity
not useful
this document cannot help to find type of chat id number
not work for me it cannot fix my issue i can convert chat id manually but i want do it automatically
You can't know the type of chat from an id obviously. but if that id is cached (you got it from inside telethon and within same session), the library will try to guess the type automatically. the -100 or - is useless then
ok thanks for your answer
yes its cached but error for me without -100
because my script get message from user, bot, channel its important for me
it can't raises a ValueError if you're a member in that channel, so it's not really cached or you're not a member
im member im creator for channel
Обсуждают сегодня