zawsq / Teleshare

A efficient and fast telegram file sharing bot.
GNU General Public License v3.0
47 stars 56 forks source link

Refactor and enchantment for broadcasting, rate limiter and local deployment. #48

Closed zawsq closed 5 months ago

zawsq commented 5 months ago

Enchantment:

Rate limiter: Since there's currently no clear way to rate limit telegram functions, as bot support stated that messaging, forwarding and other function have different rate limitations and the limits are not specified.

Rate limitations just currently rate limit a user to avoid spam on the bot and still able to handle heavy usages.

Deployment: It's now much easier to locally deploy the bot just by using:

python -m bot.main

Refactor:

Broadcast plugin: Refactored broadcast plugin for readability and small but fix to make it follow the rate limiter.