Skip to content

Commit edffaf8

Browse files
committed
Fixing COCDONE
Fixing the chat id due to conflict with the private chat
1 parent 2ff2ab6 commit edffaf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tg_bot/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def CoCDone(bot: Bot, update: Update):
294294
# reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="Torna sul gruppo", callback_data="buttonurl://t.me/TheElectusBot?start=-1001082749604")]]))
295295
update.effective_message.reply_text(COC_STRING, parse_mode=ParseMode.MARKDOWN, disable_web_page_preview=True)
296296
# Deactivating mute
297-
bot.restrict_chat_member(chat.id, int(user.id),
297+
bot.restrict_chat_member(DEFAULT_CHAT_ID, int(user.id),
298298
can_send_messages=True,
299299
can_send_media_messages=True,
300300
can_send_other_messages=True,

0 commit comments

Comments
 (0)