Skip to content

Commit 49981e8

Browse files
author
jqqqqqqqqqq
committed
telegram bot framework 2.1
add text filter function in drive mode add private chat function
1 parent 6d4e0f0 commit 49981e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/_005_drive_mode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ def begin_add_channel(bot, update):
112112

113113
def add_channel(bot, update):
114114
if update.message.forward_from_chat:
115-
update.message.reply_text(update.message.forward_from_chat.type)
116115
if update.message.forward_from_chat.type == 'channel':
116+
print(update.message.forward_from_chat.type)
117+
print(update.message.forward_from_chat.id)
117118
if update.message.forward_from_chat.id not in filter_list['channels']:
118119
filter_list['channels'].append(update.message.forward_from_chat.id)
119120
save_data()

0 commit comments

Comments
 (0)