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

Commit

Permalink
Updated to version 1.8. See releases tab for info
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga committed Jan 10, 2019
1 parent 60b3d14 commit 5e14155
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
progressbar2==3.37.0
Telethon==0.19.0.1
progressbar2==3.39.2
Telethon==0.19.1.6
15 changes: 11 additions & 4 deletions src/TLCounter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
##### THIS SCRIIPT HAS BEEN MADE BY FERFERGA. PLEASE, DON'T CLAIM THAT IT IS FROM YOURS.
##### GIVE ALWAYS CREDITS TO ORIGINAL AUTHORS.
#####
##### THANKS FOR USING!


from telethon import *
from telethon.tl.functions.channels import GetFullChannelRequest
from telethon.errors import FloodWaitError
Expand All @@ -24,8 +30,8 @@
NumChat = 0
NumSuper = 0
UserId = None
api_id = ##INSERT YOUR APIID HERE
api_hash = ##INSERT YOUR APIHASH HERE
api_id = INSERT API ID HERE
api_hash = 'INSERT APIHASH HERE!'
TLdevice_model = 'Desktop device'
TLsystem_version = 'Console'
TLapp_version = '- TLCounter ' + version
Expand Down Expand Up @@ -222,13 +228,14 @@ def StartCount(dialogs):
name = get_display_name(dialog.entity)
if ID not in ConvertedGroupsIDs:
count = GatherHistory(client.get_input_entity(dialog))
sprint(' {}: {}'.format(name, count))
if isinstance(dialog.entity, Channel):
sprint(' {}: {}'.format(name, count) + " *")
if dialog.entity.megagroup == True:
SupCount = SupCount + count
else:
ChannelCount = ChannelCount + count
elif isinstance(dialog.entity, (Chat, User)):
sprint(' {}: {}'.format(name, count))
UserCount = UserCount + count
if ID in NewGroupsIDs:
if (ID not in LookIds) and (ID in ConvertedGroupsIDs):
Expand Down Expand Up @@ -314,7 +321,7 @@ def StartCount(dialogs):
print("\nYou have ", UserCount, " messages that count against your account's limits. Thus, you are not affected by this limit!")
else:
print("\nYou have ", UserCount, " messages that count against your account's limits. You are affected by the 1 M message limit.")
print("\nChannels and supergroups have their own 1 million message limit, thus, they don't count against your account's quota.")
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.")

print("\nCOUNTED COMPLETED! OPTIONS: ")
while True:
Expand Down

0 comments on commit 5e14155

Please sign in to comment.