Похожие чаты

How can i find chatid type? for example if a chat

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?

11 ответов

8 просмотров

Documentation for get_input_entity

:δ 𝕯𝖊𝖑𝖙𝖆∇:- Автор вопроса
:δ 𝕯𝖊𝖑𝖙𝖆∇:- Автор вопроса
:δ 𝕯𝖊𝖑𝖙𝖆∇:
not useful

this document cannot help to find type of chat id number

:δ 𝕯𝖊𝖑𝖙𝖆∇:- Автор вопроса
Константин Черный
screenshot

not work for me it cannot fix my issue i can convert chat id manually but i want do it automatically

:δ 𝕯𝖊𝖑𝖙𝖆∇:
not work for me it cannot fix my issue i can conv...

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

:δ 𝕯𝖊𝖑𝖙𝖆∇:- Автор вопроса
:δ 𝕯𝖊𝖑𝖙𝖆∇:- Автор вопроса
:δ 𝕯𝖊𝖑𝖙𝖆∇:- Автор вопроса
:δ 𝕯𝖊𝖑𝖙𝖆∇:
yes its cached but error for me without -100

because my script get message from user, bot, channel its important for me

:δ 𝕯𝖊𝖑𝖙𝖆∇:
yes its cached but error for me without -100

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

:δ 𝕯𝖊𝖑𝖙𝖆∇:- Автор вопроса

Похожие вопросы

Обсуждают сегодня

Интересно, нет ли какого-то способа получить из dll не адрес самой метки, а адрес со смещением?
The Bird of Hermes
54
Whoa, did you guys see this FUNToken Seed Grant announcement? 💸
Noah Noure
37
To kaise hai aap log ?
Hakuna Matata
30
Всем привет! Может кто поможет разобраться с чёрной магией? (во всяком случае для меня) Дело вот в чём - написал я код для общения с tmc2209 драйвером по half duplex uart. М...
pronvis
4
When will ergo rise ?🙂
Murat
18
Всем привет Недавно выпустил моб приложение, получил первые оплаты - возник вопрос: Как выводить деньги с эпла? 😅 Акк зарубежный, чтоб обойти санкции, реквизиты указаны заруб...
Sergei Kord
10
вопрос: кто как решает вопрос с динамической подгрузкой скриптов для отдельных страниц с включенным turbo router?
Sergei Toroptsev
25
Подскажите пожалуйста, почему на mac m1 (arm) не монтируется ssh-agent сокет в собираемый образ? В системе не запущен ssh-agent и переменная среды SSH_AUTH_SOCK не задана. tes...
Eugene Shutov
6
is monero capable of smart contracts? also is it possible monero get faster? (currently it takes 15 mins that my transaction in other wallet to be spendable)
Khalid
13
@nighty9 @davidhultra it is time to step up our marketing and teasing of exclusive games level. Furthermore, partners such das Immutable X should post about us as well. We n...
A
5
Карта сайта