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

do you close the connect after close the program?

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

Telethon Chat

fr I got irritated af from morning

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

Telethon Chat

I used MemorySession()
Now it's working

from telethon import TelegramClient
tbot = TelegramClient(MemorySession(), API_ID, API_HASH)

tbot.start()

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

Telethon Chat

It is occuring because Multiple applications are accessing the database at the same time

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

Telethon Chat

I did this but same result

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

Telethon Chat

Nope , it's mentioned in docs too.
Only user bots can call get_messages and iter_messages functions

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

Telethon Chat

Telethon is free software. That means using it is a right: you are free to use it for absolutely any purpose whatsoever. However, help and support with using it is a privilege. If you misbehave or want to do bad things, despite possibly having good intentions, nobody is obligated to help you.

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

Telethon Chat

New StackOverflow question
How to get the original first name and last name of the user in Telegram through Telethon?

https://stackoverflow.com/q/79284028

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

Telethon Chat

You can edit using msg id if you have that otherwise need to read history that's required a userbot

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

Telethon Chat

Documentation for get_me

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

Telethon Chat

can a userbot get the last seen of the account it's running on?

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

Telethon Chat

Pass drop_author to True

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

Telethon Chat

How many messages can an accounts send with telethon

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

Telethon Chat

async def handler(event):
text = event.raw_text
if text == "/clear":
messages = client.iter_messages(-1002272402219, limit=48)
async for mes in messages:
try:
new_text = mes.text+"\n@ididid"
await client.edit_message(-1002272402219, mes.id, new_text)
print(f"ok {mes.id}")
except Exception as e:
print(str(e))


fully my code

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

Telethon Chat

how can i get channel messages with bot?

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

Telethon Chat

with memorysession you'll need to login every time unless you're dilligent about saving it before the program exits.

sqlitesession should not have any issues unless you really are doing something strange (session reuse, threads, bad fs permissions, etc)

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

Telethon Chat

Yes using different session type works too

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

Telethon Chat

And what's the solution?

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

Telethon Chat

I am not able to find the issue
I even changed the terminal

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

Telethon Chat

Hi and welcome to the group. Before asking any questions, please read the rules from the group's description, and don't forget to read the docs. Make sure you are using the latest version with pip3 install -U telethon, since most problems have already been fixed in newer versions.

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

Telethon Chat

i am using this in my login

        client: TelegramClient = TelegramClient(
json_data["sess"],
json_data["app_id"],
json_data["app_hash"],
system_version=json_data.get("sdk"),
app_version=json_data.get("app_version"),
device_model=json_data.get("device"),
system_lang_code=json_data.get("system_lang_pack")
or json_data.get("lang_code")
or "en",
lang_code=json_data.get("lang_code") or "en",
lang_pack=json_data.get("lang_pack") or lang_pack,
proxy=proxy_details,
flood_sleep_threshold=floodwait,
timeout=15,
base_logger=log.logger,
)

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

Telethon Chat

why my new accounts are getting banned from few days? i almost lost 100 of accounts

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

Telethon Chat

You should be use with client bot

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

Telethon Chat

I have a channel with 80k posts
I need edit all posts captions with userbot or just bot

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

Telethon Chat

how? I checked the docs, couldn't find it

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

Telethon Chat

mtproto proxy method is outdated
update when?
https://docs.telethon.dev/en/stable/basic/signing-in.html

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

Telethon Chat

Thanks, waiting for something like this. Using telethon how can I use it with bot. Currently I only use app and I have like 4 new accounts the maximum message I can send is 3, I don't know why that is, is there any thing I am missing

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

Telethon Chat

Hey. How can I forward message from one chat to another without mentioning sender?

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

Telethon Chat

i use iter_messages but i got

telethon.errors.rpcerrorlist.BotMethodInvalidError: The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot (caused by GetHistoryRequest)

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

Telethon Chat

can you remove floodwaits by changing session? i got a one week long one


edit: tested it, you cant

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