Skip to content

Commit e352ab4

Browse files
committed
1 parent 9c6c195 commit e352ab4

4 files changed

Lines changed: 5 additions & 27 deletions

File tree

bot/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
from .config import Config # noqa: F401
2222

2323

24-
INPUT_PHONE_NUMBER, INPUT_TG_CODE = range(2)
24+
INPUT_PHONE_NUMBER, \
25+
INPUT_TG_CODE = range(2)
2526
GLOBAL_USERS_DICTIONARY = {}

bot/__main__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
from telegram.ext import (
2020
Updater,
21-
# CallbackQueryHandler,
2221
CommandHandler,
2322
MessageHandler,
2423
Filters,
@@ -48,11 +47,7 @@
4847
# Add conversation handler with the states
4948
conv_handler = ConversationHandler(
5049
entry_points=[
51-
CommandHandler("start", start),
52-
53-
# CallbackQueryHandler(t_ele_thon_btn_, pattern="telethon"),
54-
55-
# CallbackQueryHandler(p_yro_gram_btn_, pattern="pyrogram"),
50+
CommandHandler("start", start)
5651
],
5752

5853
states={

bot/modules/my_telegram_org/input_tg_code_.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818

1919
from telegram import (
2020
Update,
21-
ParseMode,
22-
InlineKeyboardButton,
23-
InlineKeyboardMarkup
21+
ParseMode
2422
)
2523
from telegram.ext import (
2624
ConversationHandler
@@ -107,21 +105,7 @@ def input_tg_code(update: Update, context):
107105
# and send to the user
108106
aes_mesg_i.edit_text(
109107
text=me_t,
110-
parse_mode=ParseMode.HTML,
111-
reply_markup=InlineKeyboardMarkup(
112-
[
113-
[
114-
InlineKeyboardButton(
115-
text="Pyrogram",
116-
callback_data="pyrogram"
117-
),
118-
InlineKeyboardButton(
119-
text="Telethon",
120-
callback_data="telethon"
121-
)
122-
]
123-
]
124-
)
108+
parse_mode=ParseMode.HTML
125109
)
126110
else:
127111
# warning("creating APP ID caused error %s", response_dv)

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ requests==2.24.0
44

55
beautifulsoup4==4.9.1
66

7-
pyrogram==1.2.11
8-
97
python-dotenv>=0.10

0 commit comments

Comments
 (0)