mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
Use the Royal Matchmaking channel
This commit is contained in:
parent
d4cc3c9398
commit
bb9a5741bf
2 changed files with 4 additions and 2 deletions
|
@ -317,7 +317,7 @@ def cmd_mm(bot: Bot, update: Update):
|
||||||
[InlineKeyboardButton("🕒 Sto arrivando, aspettatemi!", callback_data="match_wait_for_me")],
|
[InlineKeyboardButton("🕒 Sto arrivando, aspettatemi!", callback_data="match_wait_for_me")],
|
||||||
[InlineKeyboardButton("❌ Non vengo.", callback_data="match_ignore")],
|
[InlineKeyboardButton("❌ Non vengo.", callback_data="match_ignore")],
|
||||||
[InlineKeyboardButton("🚩 [termina la ricerca]", callback_data="match_close")]])
|
[InlineKeyboardButton("🚩 [termina la ricerca]", callback_data="match_close")]])
|
||||||
message = bot.send_message(update.message.chat.id, db_match.generate_text(session=session),
|
message = bot.send_message(config["Telegram"]["announcement_group"], db_match.generate_text(session=session),
|
||||||
parse_mode="HTML",
|
parse_mode="HTML",
|
||||||
reply_markup=inline_keyboard)
|
reply_markup=inline_keyboard)
|
||||||
db_match.message_id = message.message_id
|
db_match.message_id = message.message_id
|
||||||
|
@ -445,7 +445,7 @@ def on_callback_query(bot: Bot, update: Update):
|
||||||
else:
|
else:
|
||||||
inline_keyboard = None
|
inline_keyboard = None
|
||||||
bot.edit_message_text(message_id=update.callback_query.message.message_id,
|
bot.edit_message_text(message_id=update.callback_query.message.message_id,
|
||||||
chat_id=update.callback_query.message.chat.id,
|
chat_id=config["Telegram"]["announcement_group"],
|
||||||
text=match.generate_text(session),
|
text=match.generate_text(session),
|
||||||
reply_markup=inline_keyboard,
|
reply_markup=inline_keyboard,
|
||||||
parse_mode="HTML")
|
parse_mode="HTML")
|
||||||
|
|
|
@ -35,6 +35,8 @@ bot_token =
|
||||||
main_group =
|
main_group =
|
||||||
# Telegram invite link
|
# Telegram invite link
|
||||||
invite_link =
|
invite_link =
|
||||||
|
# Telegram announcement group id
|
||||||
|
announcement_group =
|
||||||
|
|
||||||
[Flask]
|
[Flask]
|
||||||
# Secret key, used to encrypt cookies
|
# Secret key, used to encrypt cookies
|
||||||
|
|
Loading…
Reference in a new issue