Coder Social home page Coder Social logo

yasirarism / misskatypyro Goto Github PK

View Code? Open in Web Editor NEW
82.0 2.0 110.0 22.09 MB

A Very Useful Telegram Bot That Has Some Great Feature

Home Page: https://t.me/MissKatyBot

License: GNU General Public License v2.0

Dockerfile 0.08% Python 99.89% Shell 0.01% HTML 0.02% Procfile 0.01%
telegram-bot group-management-bot multifunctional pyrogram pyrogram-bot pyrogram-userbot python3 bot telegram

misskatypyro's Introduction

MissKatyPyro

- I will not give any support to your fork, so try learn by yourself!! Don't contact me because of your fault. I will stop update to this repo, and i will only give minor bugfix to this repo.

MIT License Repository Size Issue Closed

Readme in Indonesian View Demo Report bug

Table of Contents

[1] About MissKaty

MissKaty is a Telegram Bot built using Python and the Pyrogram library. Many useful features for us to use. I hope that one day this project will be discontinued, someone will continue or develop it again. I gave the name MissKaty because I like cats, a cute animal that likes to be played with and friendly with humans.

[2] Framework Tools And Server That Used To Build This Bot

🌱 PyroFork v2.x.x (Fork of Pyrogram with Topics, Stories Support and Some Patch)
🌱 Python 3.11 Support
🌱 MongoDB as Database
🌱 PyKeyboard for Building Pagination
🌱 VS Code
🌱 VPS/Server With Root and Docker Support (Recommended)

[3] Donation and Support

For Indonesian Only and some supported country:
🌱 QRIS

For International Payment:
🌱 Paypal

[4] Notes

If you want help me fixing some error in my bot, you can make pull request to this repo. I'm very glad if you can help me. You can also give support to me for buying server.

[5] Features

FEATURE MY BOT 🌱
Basic Admin Feature βœ”οΈ
AFK Feature βœ”οΈ
Downloader FB, TikTok and YT-DLP Support βœ”οΈ
MultiLanguage Support (Unfinished) ⚠️
NightMode βœ”οΈ
ChatBot based on OpenAI and Google Bard βœ”οΈ
MissKaty Mata βœ”οΈ
Inline Search βœ”οΈ
Sticker Tools βœ”οΈ
PasteBin Tools βœ”οΈ
WebScraper (Pahe, MelongMovie, LK21, Terbit21, Kusonime, etc) βœ”οΈ
IMDB Search With Multi Language Per User βœ”οΈ
GenSS From Media and MediaInfo Generator βœ”οΈ
And Many More.. βœ”οΈ

[6] Variables

Required Variables

  • BOT_TOKEN: Create a bot using @BotFather, and get the Telegram API token.
  • API_ID: Get this value from telegram.org
  • API_HASH: Get this value from telegram.org
  • DATABASE_URI: mongoDB URI. Get this value from mongoDB.
  • LOG_CHANNEL : A channel to log the activities of bot. Make sure bot is an admin in the channel.

Optional Variables

[7] Tutorial Deploy (Recommended using Docker/Docker Compose)

Build And Run Using Legacy Method

  • Make sure minimum python version is 3.8 and max python 3.11 to prevent some errors. Check it with this command:
python3 --version
  • Install all dependency that needed bot to run. (need root access, you can skip this if your server didn't have root access but some plugins will not work)
apt update -y & apt install libjpeg-dev zlib1g-dev libwebp-dev python3-pip python3-lxml git wget curl ffmpeg locales tzdata neofetch mediainfo speedtest-cli -y
  • Install requirements.txt, if using python 3.11, you need use venv when install pip package.
    Python < 3.10
pip3 install -r requirements.txt

Python 3.11

python3 -m venv nama_venv
source nama_venv/bin/activate
pip3 install -r requirements.txt 
  • Setting your config.env or via environment and dont forget fill all required value.
  • Run Bot
bash start.sh

Build And Run Using Docker

  • Start Docker daemon (Skip if already running):
sudo dockerd
  • Build Docker image:
sudo docker build . -t misskaty
  • Run the image:
sudo docker run misskaty
  • To stop the image:
sudo docker ps
sudo docker stop <pid>

Build And Run The Docker Image Using docker-compose

  • Install docker-compose
sudo apt install docker-compose
  • Build and run Docker image or to view current running image:
sudo docker-compose up
  • After editing files with nano for example (nano start.sh):
sudo docker-compose up --build
  • To stop the running image:
sudo docker ps
sudo docker-compose stop <pid>

[8] Thanks to

  • Thanks To Allah Swt.
  • Thanks To Dan For Pyrogram Library as founder of pyrogram.
  • Thanks To Mayuri For Pyrofork Library as owner of pyrofork library.
  • Thanks To TeamDrivecok and SecretGroup TBK in Telegram.
  • Thanks To The Hamker Cat For WilliamButcher Code.
  • Thanks To Team Yukki For AFK Bot Code.
  • Thanks To Wrench For Some Code.
  • Thanks To AmanoTeam For MultiLanguage Template.
  • And All People Who Help Me In My Life... If your code used in this repo and want to give credit please open issue..

[9] Disclaimer

GNU Affero General Public License 2.0
Licensed under GNU AGPL 2.0. WARNING: Selling The Codes To Other People For Money Is Strictly Prohibited. Or i will stop this project forever.

misskatypyro's People

Contributors

deepsource-autofix[bot] avatar yasirarism avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

misskatypyro's Issues

Failed Deploy

root@ubuntu-s-2vcpu-4gb-sgp1-01:~/MissKatyPyro# sudo docker-compose up --build
Building app
Sending build context to Docker daemon 4.271MB
Step 1/4 : FROM yasirarism/misskaty-docker:latest
---> 00d711b1294a
Step 2/4 : ENV HOSTNAME yasir-server
---> Using cache
---> 4eee8e5c99d6
Step 3/4 : COPY . .
---> aa8da82f8311
Step 4/4 : CMD ["bash", "start.sh"]
---> Running in 433ec19695c6
Removing intermediate container 433ec19695c6
---> 866a2a09e4f2
Successfully built 866a2a09e4f2
Successfully tagged misskatypyro_app:latest
Recreating misskatypyro_app_1 ... done
Attaching to misskatypyro_app_1
app_1 | [WARNING] - [28-Aug-23 19:41:59 - MissKaty - UPSTREAM_REPO_URL or UPSTREAM_REPO_BRANCH is not defined, Skipping auto update] -> [update:66]app_1 | One or more env variables missing! Exiting now.
app_1 | int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
app_1 | [WARNING] - [28-Aug-23 19:42:02 - MissKaty - UPSTREAM_REPO_URL or UPSTREAM_REPO_BRANCH is not defined, Skipping auto update] -> [update:66]app_1 | One or more env variables missing! Exiting now.
app_1 | int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
misskatypyro_app_1 exited with code 1

Fitur Info

Can u add fitur this is for command /info

Extracted User info From Telegram

πŸ†” User ID: 6196923354
πŸ“Ž Profile Link: Click HereπŸšͺ
πŸ—£ First Name: Reaper
πŸ—£ Last Name: Last Name not found
πŸ‘¨πŸΏβ€πŸ’» Bio: None
🌐 DC ID: 1
πŸ“Έ Pictures : 1
🧐 Restricted: False
βœ… Verified: False
πŸ€– Bot: False
πŸ‘₯ Common Groups: 1

Feature request actually

Your sticker module is nice . It will be a great help if you add 2 commands.

  • Pack kang : Kang a whole pack by replying to a sticker .

  • List pack : a command to list sticker packs made by this bot

Please fix. All issues

Please fix this

AttributeError: 'Message' object has no attribute 'reply_msg'

2024-04-03 03:23:13,930 - pyrogram.dispatcher - ERROR - 'Message' object has no attribute 'reply_msg'

2024-04-03 03:21:08,796 - pyrogram.dispatcher - ERROR - Message.reply_text() got an unexpected keyword argument 'del_in'
In paste. &pypi modules

Fix. Mediainfo & genss module. It doesn't work

In. Mediainfo it gives this problem
Uploading Screenshot_2024-05-14-08-05-59-37_948cd9899890cbd5c2798760b2b95377.jpg…

app/misskaty/helper/localization.py", line 102, in wrapper
2024-05-14T02:29:14.429853+00:00 app[worker.1]: return await func(client, message, lfunc)
2024-05-14T02:29:14.429854+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-14T02:29:14.429854+00:00 app[worker.1]: File "/app/misskaty/plugins/mediainfo.py", line 54, in mediainfo
2024-05-14T02:29:14.429854+00:00 app[worker.1]: output_ = await runcmd(f'mediainfo "{file_path}"')
2024-05-14T02:29:14.429854+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-14T02:29:14.429854+00:00 app[worker.1]: File "/app/misskaty/helper/media_helper.py", line 59, in runcmd
2024-05-14T02:29:14.429855+00:00 app[worker.1]: process = await asyncio.create_subprocess_exec(
2024-05-14T02:29:14.429855+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-14T02:29:14.429855+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/asyncio/subprocess.py", line 224, in create_subprocess_exec
2024-05-14T02:29:14.429855+00:00 app[worker.1]: transport, protocol = await loop.subprocess_exec(
2024-05-14T02:29:14.429855+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-14T02:29:14.429856+00:00 app[worker.1]: File "uvloop/loop.pyx", line 2820, in subprocess_exec
2024-05-14T02:29:14.429856+00:00 app[worker.1]: File "uvloop/loop.pyx", line 2778, in __subprocess_run
2024-05-14T02:29:14.429856+00:00 app[worker.1]: File "uvloop/handles/process.pyx", line 611, in uvloop.loop.UVProcessTransport.new
2024-05-14T02:29:14.429856+00:00 app[worker.1]: File "uvloop/handles/process.pyx", line 112, in uvloop.loop.UVProcess._init
2024-05-14T02:29:14.429856+00:00 app[worker.1]: FileNotFoundError: [Errno 2] No such file or directory

In genss. Got this problem

**Failed screenshoot generation.

'NoneType' object has no attribute 'name'**

Error running

Im having this error while running the program

sudo docker run misskaty
Password:
Traceback (most recent call last):
File "", line 189, in _run_module_as_main
File "", line 148, in _get_module_details
File "", line 112, in _get_module_details
File "/MissKaty/misskaty/init.py", line 58, in
user.start()
File "/usr/local/lib/python3.11/dist-packages/pyrogram/sync.py", line 66, in async_to_sync_wrap
return loop.run_until_complete(coroutine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pyrogram/methods/utilities/start.py", line 58, in start
is_authorized = await self.connect()
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pyrogram/methods/auth/connect.py", line 40, in connect
await self.load_session()
File "/usr/local/lib/python3.11/dist-packages/pyrogram/client.py", line 587, in load_session
await self.storage.open()
File "/usr/local/lib/python3.11/dist-packages/pyrogram/storage/memory_storage.py", line 61, in open
base64.urlsafe_b64decode(self.session_string + "=" * (-len(self.session_string) % 4))
File "/usr/lib/python3.11/base64.py", line 134, in urlsafe_b64decode
return b64decode(s)
^^^^^^^^^^^^
File "/usr/lib/python3.11/base64.py", line 88, in b64decode
return binascii.a2b_base64(s, strict_mode=validate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
binascii.Error: Incorrect padding

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.