From 6c1530e2894350247cbcc638d461febe6d8ad594 Mon Sep 17 00:00:00 2001 From: Kourva <118578799+Kourva@users.noreply.github.com> Date: Thu, 14 Mar 2024 02:43:40 +0330 Subject: [PATCH] Added /tts, /settings --- init.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/init.py b/init.py index 729f789..c907365 100644 --- a/init.py +++ b/init.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # Standard library imports -from typing import Any, ClassVar +import typing # Related third party imports from telebot import types, util @@ -14,7 +14,7 @@ # Connect to bot # Token placed in utils.py file. You can change it with your token -GPTbot: ClassVar[Any] = telebot.TeleBot(utils.TOKEN) +GPTbot: typing.ClassVar[typing.Any] = telebot.TeleBot(utils.TOKEN) print(f"The Bot is online (id: {GPTbot.get_me().id}) \33[0;31m[Initial MODE]\33[m...") # Set bot commands @@ -33,10 +33,18 @@ command="ping", description="Ping providers" ), + types.BotCommand( + command="settings", + description="Provider settings" + ), types.BotCommand( command="chat", description="Chat in groups using this command" ), + types.BotCommand( + command="tts", + description="Brian Text To Speech response" + ), types.BotCommand( command="history", description="Get your chat history"