Skip to content

Commit 91debe3

Browse files
committed
Fixing version variable
1 parent b4f1e16 commit 91debe3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

tg_bot/__main__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@
1414
from telegram.utils.helpers import escape_markdown
1515

1616
from tg_bot import dispatcher, updater, TOKEN, WEBHOOK, OWNER_ID, DONATION_LINK, CERT_PATH, PORT, URL, LOGGER, \
17-
ALLOW_EXCL, DEFAULT_CHAT_ID
17+
ALLOW_EXCL, DEFAULT_CHAT_ID, VERSION
1818
# needed to dynamically load modules
1919
# NOTE: Module order is not guaranteed, specify that in the config file!
2020
from tg_bot.modules import ALL_MODULES
2121
from tg_bot.modules.helper_funcs.chat_status import is_user_admin
2222
from tg_bot.modules.helper_funcs.misc import paginate_modules
2323

24-
version = "0.00.1"
25-
2624
PM_START_TEXT = """
2725
Ciao {}, io sono {}! Il bot numero 1 di python_ita. Se hai qualche dubbio su come usarmi, leggi l'output del comando /help .
2826
@@ -296,7 +294,7 @@ def CoCDone(bot: Bot, update: Update):
296294
# reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="Torna sul gruppo", callback_data="buttonurl://t.me/TheElectusBot?start=-1001082749604")]]))
297295
update.effective_message.reply_text(COC_STRING, parse_mode=ParseMode.MARKDOWN, disable_web_page_preview=True)
298296
# Deactivating mute
299-
bot.restrict_chat_member(chat.id, int(user_id),
297+
bot.restrict_chat_member(chat.id, int(user.id),
300298
can_send_messages=True,
301299
can_send_media_messages=True,
302300
can_send_other_messages=True,
@@ -465,7 +463,7 @@ def main():
465463

466464
# Restarting bot message
467465
dispatcher.bot.sendMessage(chat_id=int(DEFAULT_CHAT_ID),
468-
text="Sistema *riavviato*.\nVersione: {}".format(str(version)),
466+
text="Sistema *riavviato*.\nVersione: {}".format(str(VERSION)),
469467
parse_mode=ParseMode.MARKDOWN)
470468

471469
# add antiflood processor

0 commit comments

Comments
 (0)