Skip to content

Commit

Permalink
treewide: cleanup
Browse files Browse the repository at this point in the history
- remove unused import

Signed-off-by: Mr.Miss <[email protected]>
  • Loading branch information
MrMissx committed Aug 24, 2020
1 parent 321d04c commit 807d301
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion forwarder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging
import os
import sys

import telegram.ext as tg

Expand Down
1 change: 0 additions & 1 deletion forwarder/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def help(bot: Bot, update: Update):
def main():
start_handler = CommandHandler("start", start, filters=Filters.user(OWNER_ID))
help_handler = CommandHandler("help", help, filters=Filters.user(OWNER_ID))

dispatcher.add_handler(start_handler)
dispatcher.add_handler(help_handler)

Expand Down
3 changes: 1 addition & 2 deletions forwarder/modules/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from telegram.ext import CommandHandler, Filters
from telegram.ext.dispatcher import run_async

from forwarder import OWNER_ID, FROM_CHATS, TO_CHATS, LOGGER, dispatcher
from forwarder import OWNER_ID, FROM_CHATS, TO_CHATS, dispatcher


@run_async
Expand All @@ -19,7 +19,6 @@ def get_id(bot: Bot, update: Update):
"The forwarder, {}, has an ID of `{}`.".format(
sender.first_name, sender.id,
forwarder.first_name, forwarder.id), parse_mode=ParseMode.MARKDOWN)

elif message.reply_to_message.forward_from_chat: # Replied message is a forward from a channel
channel = message.reply_to_message.forward_from_chat
forwarder = message.reply_to_message.from_user
Expand Down

0 comments on commit 807d301

Please sign in to comment.