Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe committed Dec 5, 2021
1 parent 9c6c195 commit e352ab4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 27 deletions.
3 changes: 2 additions & 1 deletion bot/__init__.py
Expand Up @@ -21,5 +21,6 @@
from .config import Config # noqa: F401


INPUT_PHONE_NUMBER, INPUT_TG_CODE = range(2)
INPUT_PHONE_NUMBER, \
INPUT_TG_CODE = range(2)
GLOBAL_USERS_DICTIONARY = {}
7 changes: 1 addition & 6 deletions bot/__main__.py
Expand Up @@ -18,7 +18,6 @@

from telegram.ext import (
Updater,
# CallbackQueryHandler,
CommandHandler,
MessageHandler,
Filters,
Expand Down Expand Up @@ -48,11 +47,7 @@
# Add conversation handler with the states
conv_handler = ConversationHandler(
entry_points=[
CommandHandler("start", start),

# CallbackQueryHandler(t_ele_thon_btn_, pattern="telethon"),

# CallbackQueryHandler(p_yro_gram_btn_, pattern="pyrogram"),
CommandHandler("start", start)
],

states={
Expand Down
20 changes: 2 additions & 18 deletions bot/modules/my_telegram_org/input_tg_code_.py
Expand Up @@ -18,9 +18,7 @@

from telegram import (
Update,
ParseMode,
InlineKeyboardButton,
InlineKeyboardMarkup
ParseMode
)
from telegram.ext import (
ConversationHandler
Expand Down Expand Up @@ -107,21 +105,7 @@ def input_tg_code(update: Update, context):
# and send to the user
aes_mesg_i.edit_text(
text=me_t,
parse_mode=ParseMode.HTML,
reply_markup=InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
text="Pyrogram",
callback_data="pyrogram"
),
InlineKeyboardButton(
text="Telethon",
callback_data="telethon"
)
]
]
)
parse_mode=ParseMode.HTML
)
else:
# warning("creating APP ID caused error %s", response_dv)
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Expand Up @@ -4,6 +4,4 @@ requests==2.24.0

beautifulsoup4==4.9.1

pyrogram==1.2.11

python-dotenv>=0.10

0 comments on commit e352ab4

Please sign in to comment.