Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 5e14155

Browse files
committed
Updated to version 1.8. See releases tab for info
1 parent 60b3d14 commit 5e14155

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
progressbar2==3.37.0
2-
Telethon==0.19.0.1
1+
progressbar2==3.39.2
2+
Telethon==0.19.1.6

src/TLCounter.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
##### THIS SCRIIPT HAS BEEN MADE BY FERFERGA. PLEASE, DON'T CLAIM THAT IT IS FROM YOURS.
2+
##### GIVE ALWAYS CREDITS TO ORIGINAL AUTHORS.
3+
#####
4+
##### THANKS FOR USING!
5+
6+
17
from telethon import *
28
from telethon.tl.functions.channels import GetFullChannelRequest
39
from telethon.errors import FloodWaitError
@@ -24,8 +30,8 @@
2430
NumChat = 0
2531
NumSuper = 0
2632
UserId = None
27-
api_id = ##INSERT YOUR APIID HERE
28-
api_hash = ##INSERT YOUR APIHASH HERE
33+
api_id = INSERT API ID HERE
34+
api_hash = 'INSERT APIHASH HERE!'
2935
TLdevice_model = 'Desktop device'
3036
TLsystem_version = 'Console'
3137
TLapp_version = '- TLCounter ' + version
@@ -222,13 +228,14 @@ def StartCount(dialogs):
222228
name = get_display_name(dialog.entity)
223229
if ID not in ConvertedGroupsIDs:
224230
count = GatherHistory(client.get_input_entity(dialog))
225-
sprint(' {}: {}'.format(name, count))
226231
if isinstance(dialog.entity, Channel):
232+
sprint(' {}: {}'.format(name, count) + " *")
227233
if dialog.entity.megagroup == True:
228234
SupCount = SupCount + count
229235
else:
230236
ChannelCount = ChannelCount + count
231237
elif isinstance(dialog.entity, (Chat, User)):
238+
sprint(' {}: {}'.format(name, count))
232239
UserCount = UserCount + count
233240
if ID in NewGroupsIDs:
234241
if (ID not in LookIds) and (ID in ConvertedGroupsIDs):
@@ -314,7 +321,7 @@ def StartCount(dialogs):
314321
print("\nYou have ", UserCount, " messages that count against your account's limits. Thus, you are not affected by this limit!")
315322
else:
316323
print("\nYou have ", UserCount, " messages that count against your account's limits. You are affected by the 1 M message limit.")
317-
print("\nChannels and supergroups have their own 1 million message limit, thus, they don't count against your account's quota.")
324+
print("\nChannels and supergroups have their own 1 million message limit, thus, they don't count against your account's quota.\nThey are marked with '*' in the chat list above.")
318325

319326
print("\nCOUNTED COMPLETED! OPTIONS: ")
320327
while True:

0 commit comments

Comments
 (0)