TelegramTagBot is a Python-based Telegram bot that allows users to tag all members in a group chat. The bot requires admin permissions to function properly. This bot is built using the Pyrogram library and SQLite for user management.
TelegramTagBot, qrup çatında bütün üzvləri işarələməyə imkan verən Python əsaslı Telegram botudur. Botun düzgün işləməsi üçün administrator icazələri tələb olunur. Bu bot Pyrogram kitabxanası və istifadəçi idarəetməsi üçün SQLite istifadə edərək qurulub.
- Tag all members in a group chat / Qrup çatında bütün üzvləri işarələmək
- Start and stop tagging with commands / Komandalarla işarələməyə başlamaq və dayandırmaq
- Check if the bot is working / Botun işlədiyini yoxlamaq
- User-friendly messages and prompts / İstifadəçi dostu mesajlar və göstərişlər
- Python 3.6+
- Pyrogram
- SQLite3
-
Clone the repository / Repozitoriyanı klonlayın:
git clone https://github.com/abdullaabdullazade/TelegramTagBot.git cd TelegramTagBot
-
Install the required Python packages / Tələb olunan Python paketlərini quraşdırın:
pip install pyrogram
-
Set up your Telegram bot / Telegram botunuzu qurun:
- Create a new bot on Telegram by talking to BotFather.
- Get your
bot_token
from BotFather. - Get your
api_id
,api_hash
from Account Center - BotFather ilə danışaraq Telegramda yeni bot yaradın.
api_id
,api_hash
vəbot_token
məlumatlarınızı BotFather-dan əldə edin.
-
Configure the bot with your credentials / Botu məlumatlarınızla konfiqurasiya edin:
Replace the placeholders in the script with your credentials.
Skriptdəki yer tutucuları məlumatlarınızla əvəz edin.
api_id = 'YOUR_API_ID' # write api_id api_hash = 'YOUR_API_HASH' # write api_hash bot_token = 'YOUR_BOT_TOKEN' # write bot_token your_telegram_username = 'YOUR_TELEGRAM_USERNAME' # without @ / @ işarəsi olmadan your_telegram_bot_username = 'YOUR_TELEGRAM_BOT_USERNAME' # without @ / @ işarəsi olmadan
-
Run the bot / Botu işə salın:
python bot.py
After starting the bot, you can use the following commands:
Botu işə saldıqdan sonra aşağıdakı komandaları istifadə edə bilərsiniz:
/start
- Check if the bot is working / Botun işlədiyini yoxlayın/all
- Tag everyone in the group. For example: /all your_message / Qrupdakı hər kəsi işarələyin. Məsələn: /all your_message/close
- Stop tagging / İşarələməni dayandırın/help
- Display help message / Yardım mesajını göstərin
To add the bot to a group, click the button provided in the start message or add the bot manually. Make sure to grant the bot admin permissions.
Botu qrupa əlavə etmək üçün, start mesajında göstərilən düyməni klikləyin və ya botu əl ilə əlavə edin. Botun administrator icazələrini aldığından əmin olun.
- Add the bot to your group / Botu qrupunuza əlavə edin.
- Use the
/start
command to check if the bot is active / Botun aktiv olduğunu yoxlamaq üçün/start
əmrindən istifadə edin. - Use the
/all
command to tag all members in the group / Qrupdakı bütün üzvləri işarələmək üçün/all
əmrindən istifadə edin. - Use the
/close
command to stop tagging / İşarələməni dayandırmaq üçün/close
əmrindən istifadə edin.
Feel free to fork this project and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.
Bu layihəni fork edib pull request göndərməkdən çəkinməyin. Böyük dəyişikliklər üçün əvvəlcə dəyişmək istədiyinizi müzakirə etmək üçün bir issue açın.
If you have any questions, feel free to open an issue or reach out to me at [email protected].
Hər hansı bir sualınız varsa, xahiş edirəm, bir məsələ açın və ya mənə [email protected] ünvanından müraciət edin.