Похожие чаты

Is get_entity can be used if i only have the

id but not joined in that group? or i need to join it first?

12 ответов

21 просмотр

You must join the chat to use its id in requests, unless it was cached in the .session file before

􀰂􀰂⃝⛧⁶⁶⁶⛧⃝􏿿- Автор вопроса
⎞ .·. ⎝ ⎝
You must join the chat to use its id in requests, ...

so if the group is public, i can use get_entity with its id without joining the group? and how to check if its id cached in .session file or not?

􀰂􀰂⃝⛧⁶⁶⁶⛧⃝􏿿
so if the group is public, i can use get_entity wi...

you use get_entity usually to see if it's cached, it raises ValueError if it wasn't, you can't get that chat with id then, public or not doesn't matter

􀰂􀰂⃝⛧⁶⁶⁶⛧⃝􏿿- Автор вопроса
⎞ .·. ⎝ ⎝
you use get_entity usually to see if it's cached, ...

so the important thing is joining it first, before using get_entity? but how if i leave the group? is it still cached?

􀰂􀰂⃝⛧⁶⁶⁶⛧⃝􏿿
so the important thing is joining it first, before...

If the group was seen from telethon before, it'll be cached even if you left by the other clients, through any of the request like get_dialogs or receiving events from that chat basically, if you could ever fetch a chat with get_entity and it never raised a ValueError, it never will and it will always be possible to get_entity it thereafter, unless you delete the session file

􀰂􀰂⃝⛧⁶⁶⁶⛧⃝􏿿- Автор вопроса
⎞ .·. ⎝ ⎝
If the group was seen from telethon before, it'll ...

if i delete session file, i need to relogin and get the token, right? is session file permanent? or do i need to relogin it after some time? because my first login is in july. :D

⎞ .·. ⎝ ⎝
If the group was seen from telethon before, it'll ...

What if i have a bot that interact with mellions of users does it use same aproch? that means the session file will be much bigger

􀰂􀰂⃝⛧⁶⁶⁶⛧⃝􏿿- Автор вопроса
127.0.0.1 [Fuck the Jews]
What if i have a bot that interact with mellions o...

It's not going to be that big. for a bot of that scale, it's insignificant.

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

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

#include <stdio.h> #include <stdlib.h> #include <time.h> void mass_first_generate(int mass[5][7]) {     for (int N = 0; N < 5; N++) {         for (int A = 0; A < 7; A++) {   ...
Чувак
6
https://www.linkedin.com/posts/ugama-benedicta-kelechi-codergirl-103041300_mobiledevelopment-fluttertraining-handsonlearning-activity-7263445699227254784-IdHB?utm_source=share...
CoderGirl
16
Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
VIP-397 BNBx Oracle implementation upgrade Summary This proposal, if approved, will upgrade the implementation of the BNBx Oracle contract on Venus from version 1 (V1) to v...
Venus Announcements
2
like, question: int b = 99999; is this valid and predictable C?
Ludovic 'Archivist' Lagouardette
15
Помогите пожалуйста. Делаю систему плагинов. Проблема сейчас в такая: плагины загружаются в основном потоке. FLibHandle := SafeLoadLibrary(FFileName) Но нужно еще выполнить фу...
Илья 🤣
10
Ну вот просто даже давайте вот как. Какой нибудь конкретный кейс, можете в пример привести, где бч работает и приносит прикладную пользу, а не просто что бы было? Не крипту.
Alexander Andreev
22
For all those that keep asking why no pump? why this ? and why that...? Please close ur ewt chart and open 2 others - TOTAL (total mc) and BTC.D (btc dominance). Maybe BTC a...
Inn3r_G
19
"Since pnut can flip FTM easily, I'm swapping my FTM to pnut and hoping for a easy x5-x10" Perfect recipe for disaster. NFA but chances are, you'll end up as exit liquidity ...
C. A.
7
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
Карта сайта