diff --git a/requirements.txt b/requirements.txt index 8f9be9f..bf06358 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -progressbar2==3.37.0 -Telethon==0.19.0.1 +progressbar2==3.39.2 +Telethon==0.19.1.6 diff --git a/src/TLCounter.py b/src/TLCounter.py index ded6c7c..7060f62 100644 --- a/src/TLCounter.py +++ b/src/TLCounter.py @@ -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 @@ -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 @@ -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): @@ -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: