Questions tagged [telethon]

Telethon is a Python 3 Telegram client library. It uses the normal Telegram API instead of the Bot API, which means it can perform all actions a regular user can perform. Use this tag when asking questions about using the Telethon library.

Python 3 Telegram client library which is used API of Telegram.

Home page: https://pypi.python.org/pypi/Telethon

1211 questions
-3
votes
0 answers

Are anonymous Fragment phone numbers less likely to get banned?

I'm currently developing a Telegram bot, using Telethon, for posting and moderating Telegram groups. However, my phone numbers keep getting banned (5 times already). I suspect it might be because either the phones that I have been using or my IP…
TheNinjaKing
  • 27
  • 2
  • 8
-3
votes
1 answer

Creating userbot for parsing/forwarding content from one group to my own channel

from tokenize import Token from telethon import TelegramClient, events from telethon import utils api_id = api_hash = '' bot = Token('') client = TelegramClient('Xparser', api_id, api_hash) entity = '-1001201387948' message_ids =…
-3
votes
2 answers

How i control if an userbot is limited?

how i can control if an userbot is in FloodWait or PeerFlood(is limited) without do an invite/chat request? I send a message to SpamBot but it informs me only if the userbot is limited, no if is in FloodWait. Thanks and sorry for my bad english!
-3
votes
2 answers

How to create a for loop from a input dependent function in Python?

I am finally getting the hang of Python and have started using it on a daily basis at work. However, the learning curve is still steep and I have hit a roadblock in trying something new with a code I found here for scraping members from telegram…
Ivan
  • 3
  • 1
  • 4
-4
votes
1 answer

Send direct message to new members from target telegram group

i want to make a script, that get the user_id from new joined members in a target group, and send to new member a direct message, how i can do that? I didn't know what to try.
Pekea
  • 21
  • 5
-4
votes
2 answers

Remove Object in Json File Python

I have a json file: [{"uid": x, "username": "x", "firstname": "x", "lastname": "x", "access_hash": x}, {"uid": y, "username": "y", "firstname": "y", "lastname": "y", "access_hash": y}] and I want to remove the the object {"uid[...]"access-hash": x}…
Mehmet
  • 31
  • 1
  • 1
  • 4
-5
votes
1 answer

How to use asyncio with threading in Python is Method threading.Timer

import asyncio, redis from threading import Thread, Timer db = redis.StrictRedis(host='localhost', port=6379, db=0, charset='UTF-8', decode_responses=True) txts = ['txt1','txt2','txt3'] async def Send_GP(): async for dialog in…
REZA TG
  • 1
  • 1
1 2 3
80
81