PygroupBot


NamePygroupBot JSON
Version 1.2.5 PyPI version JSON
download
home_pagehttps://github.com/ranujasanmir/pygroupbot
Summarypygroupbot is python library that can you help to create your own simple telegram group manage bot
upload_time2023-12-16 03:47:09
maintainer
docs_urlNone
authorPixCap TM
requires_python
licenseMIT
keywords telegram bot
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
![Python Version](https://img.shields.io/badge/python-3.5-blue.svg)

**_`pygroupbot` is python library that can you help to create your own simple telegram group manage bot._**

## Table of Contents

- [Installation](#installation)
- [How To Use](#how-to-use)
  - [Importing the Module](#importing-the-module)
  - [More Examples](#examples)
  - [Errors](#errors)
- [Terms And Condition](#terms-and-condition)
- [License](#license)
- [About Us](#about-us)

## Installation

To integrate `pygroupbot` into your project, you can use `pip`:

```bash
pip install pygroupbot
```

pygroupbot using pytelegrambotapi library for connect with telegram api. If it's not installed after installing pygroupbot, then install it :

```bash
pip install pytelegrambotapi
```

For use pygroupbot you have to install python 3 on your device.(Python 2 is not supported!)

## How To Use

### Importing The Module

To import pygroupbot to your projects just use `import` :

```python
import pygroupbot
```

### Examples

Genaral example:

```python
import pygroupbot # Importing PyGroupBot

pygroupbot.bot.token("<BOT_TOKEN>", mode= "html") # Initializing Bot Token and parse_mode. Also you can use 'Markdown' to parse_mode

start_message = "Hi I'm group manage bot" # Message you want to show when user said /start
menu_message = "Here is a my all commands" # Message you want to show when user said /menu
help_message = "Get my help" # Message you want to show when user said /help
info_message = "This is the Group Manage bot" # Message you want to show when user said /info
kick_message = "User kicked from group" # Message you want to show after user kick
ban_message = "User banned from group" # Message you want to show after user ban
unban_message = "User unbanned from group" # Message you want to show after  user unban

# Input variables to bot
pygroupbot.start_message(start_message)
pygroupbot.menu_message(menu_message)
pygroupbot.help_message(help_message)
pygroupbot.info_message(info_message)
pygroupbot.kick_message(kick_message)
pygroupbot.ban_message(ban_message)
pygroupbot.unban_message(unban_message)

# Run bot without stoping
pygroupbot.run(True)

```

**How to Bold / Italic and Create Links:**

With the `Pygroupbot v1.2.2` we initialized `parse_mode` to bot. Telegram bots has two parse_mode. First one is `Markdown`. In this parse mode you can bold text using '**' symbol and italic text using '__' like in the bellow example:

```python
pygroupbot.bot.token("<TOKEN>", mode= "Markdown")

paygroupbot.start_message("*Hello Dear!* _I am the PyGroupBot_")
```

We suggest to you use `html` as parse_mode. You can bold text with '<b></b>', italic text with '<i></i>' and create links with 'a' tag using in html like in the bellow example:

```python
pygroupbot.bot.token("<TOKEN>", mode= "html")

paygroupbot.start_message("<b>Hello Dear!</b>   <i>I am the PyGroupBot</i>   <a href='https://github.com/ranujasanmir/pygroupbot'>Go to github</a>")
```

### Errors

You will face some errors while using pygroupbot.

1. **Something Wrong. ERROR_523** - Something messing in the bot. Check bot admin rights..

2. **Bad request from telegram api. [Cannot run bot. check your internet connection]. ERROR_400** - This error saying bot has problem with connecting to the telegram api. Check your device internet connection. Or create new bot token from Bot Father and give it to the bot.

```python
pygroupbot.bot.token("<NEW_BOT_TOKEN>")
```

3. **Python version error. PyGroupBot bot need python3** - If you see this error you have to update your python version. pygroupbot can't run on python 2. It's very old version. All potato pc's can run python 3.2. So why are you using python2?

4. **.run() only need boolean value!** - It's mean you entered wrong value to run() function. run() only need True or False values.

```python
pygroupbot.run(True)
```

5. **pygroupbot token must not be a null** - This saying you didn't entered token.

6. **pygroupbot mode must not be a null** - To fix this error pass the parse_mode.

7. **PyGroupBot Server Not Started Yet - Bot is Offline...** - If bot didn't running this error will be show. Make sure to make pygroupbot.run(True). If you entered False, bot will not run.

**This errors only showing with pygroupbot. The errors from pytelegrambotapi not here!**

## Terms And Condition

1. **Use Responsibly**: This python library is developed for only education purpose.

2. **Privacy**: We do not store any details about you.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## About Us

We are PixCap TM. We are from Sri Lanka. We interest on programming and software development. pygroupbot is our first python library. We have created some computer softwares. And we are developing telegram bots. You can find Medusa bot on telegram(Username : @medusa_rs45_bot). This bot has awesome tools for interact with donghua and anime world. Check it out!

**Copyright © 2020-2023 PixCap TM.**
**All rights Reserved.**


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ranujasanmir/pygroupbot",
    "name": "PygroupBot",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "telegram,bot",
    "author": "PixCap TM",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/13/37/c8e80b666ea435dd73677c16ec9d09b3f3c753e20a876b3393006fadebaf/PygroupBot-1.2.5.tar.gz",
    "platform": null,
    "description": "\n![Python Version](https://img.shields.io/badge/python-3.5-blue.svg)\n\n**_`pygroupbot` is python library that can you help to create your own simple telegram group manage bot._**\n\n## Table of Contents\n\n- [Installation](#installation)\n- [How To Use](#how-to-use)\n  - [Importing the Module](#importing-the-module)\n  - [More Examples](#examples)\n  - [Errors](#errors)\n- [Terms And Condition](#terms-and-condition)\n- [License](#license)\n- [About Us](#about-us)\n\n## Installation\n\nTo integrate `pygroupbot` into your project, you can use `pip`:\n\n```bash\npip install pygroupbot\n```\n\npygroupbot using pytelegrambotapi library for connect with telegram api. If it's not installed after installing pygroupbot, then install it :\n\n```bash\npip install pytelegrambotapi\n```\n\nFor use pygroupbot you have to install python 3 on your device.(Python 2 is not supported!)\n\n## How To Use\n\n### Importing The Module\n\nTo import pygroupbot to your projects just use `import` :\n\n```python\nimport pygroupbot\n```\n\n### Examples\n\nGenaral example:\n\n```python\nimport pygroupbot # Importing PyGroupBot\n\npygroupbot.bot.token(\"<BOT_TOKEN>\", mode= \"html\") # Initializing Bot Token and parse_mode. Also you can use 'Markdown' to parse_mode\n\nstart_message = \"Hi I'm group manage bot\" # Message you want to show when user said /start\nmenu_message = \"Here is a my all commands\" # Message you want to show when user said /menu\nhelp_message = \"Get my help\" # Message you want to show when user said /help\ninfo_message = \"This is the Group Manage bot\" # Message you want to show when user said /info\nkick_message = \"User kicked from group\" # Message you want to show after user kick\nban_message = \"User banned from group\" # Message you want to show after user ban\nunban_message = \"User unbanned from group\" # Message you want to show after  user unban\n\n# Input variables to bot\npygroupbot.start_message(start_message)\npygroupbot.menu_message(menu_message)\npygroupbot.help_message(help_message)\npygroupbot.info_message(info_message)\npygroupbot.kick_message(kick_message)\npygroupbot.ban_message(ban_message)\npygroupbot.unban_message(unban_message)\n\n# Run bot without stoping\npygroupbot.run(True)\n\n```\n\n**How to Bold / Italic and Create Links:**\n\nWith the `Pygroupbot v1.2.2` we initialized `parse_mode` to bot. Telegram bots has two parse_mode. First one is `Markdown`. In this parse mode you can bold text using '**' symbol and italic text using '__' like in the bellow example:\n\n```python\npygroupbot.bot.token(\"<TOKEN>\", mode= \"Markdown\")\n\npaygroupbot.start_message(\"*Hello Dear!* _I am the PyGroupBot_\")\n```\n\nWe suggest to you use `html` as parse_mode. You can bold text with '<b></b>', italic text with '<i></i>' and create links with 'a' tag using in html like in the bellow example:\n\n```python\npygroupbot.bot.token(\"<TOKEN>\", mode= \"html\")\n\npaygroupbot.start_message(\"<b>Hello Dear!</b>   <i>I am the PyGroupBot</i>   <a href='https://github.com/ranujasanmir/pygroupbot'>Go to github</a>\")\n```\n\n### Errors\n\nYou will face some errors while using pygroupbot.\n\n1. **Something Wrong. ERROR_523** - Something messing in the bot. Check bot admin rights..\n\n2. **Bad request from telegram api. [Cannot run bot. check your internet connection]. ERROR_400** - This error saying bot has problem with connecting to the telegram api. Check your device internet connection. Or create new bot token from Bot Father and give it to the bot.\n\n```python\npygroupbot.bot.token(\"<NEW_BOT_TOKEN>\")\n```\n\n3. **Python version error. PyGroupBot bot need python3** - If you see this error you have to update your python version. pygroupbot can't run on python 2. It's very old version. All potato pc's can run python 3.2. So why are you using python2?\n\n4. **.run() only need boolean value!** - It's mean you entered wrong value to run() function. run() only need True or False values.\n\n```python\npygroupbot.run(True)\n```\n\n5. **pygroupbot token must not be a null** - This saying you didn't entered token.\n\n6. **pygroupbot mode must not be a null** - To fix this error pass the parse_mode.\n\n7. **PyGroupBot Server Not Started Yet - Bot is Offline...** - If bot didn't running this error will be show. Make sure to make pygroupbot.run(True). If you entered False, bot will not run.\n\n**This errors only showing with pygroupbot. The errors from pytelegrambotapi not here!**\n\n## Terms And Condition\n\n1. **Use Responsibly**: This python library is developed for only education purpose.\n\n2. **Privacy**: We do not store any details about you.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## About Us\n\nWe are PixCap TM. We are from Sri Lanka. We interest on programming and software development. pygroupbot is our first python library. We have created some computer softwares. And we are developing telegram bots. You can find Medusa bot on telegram(Username : @medusa_rs45_bot). This bot has awesome tools for interact with donghua and anime world. Check it out!\n\n**Copyright \u00a9 2020-2023 PixCap TM.**\n**All rights Reserved.**\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "pygroupbot is python library that can you help to create your own simple telegram group manage bot",
    "version": "1.2.5",
    "project_urls": {
        "Homepage": "https://github.com/ranujasanmir/pygroupbot"
    },
    "split_keywords": [
        "telegram",
        "bot"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1337c8e80b666ea435dd73677c16ec9d09b3f3c753e20a876b3393006fadebaf",
                "md5": "25e115824436ab07da5cb1efbb56d171",
                "sha256": "67c23a0100a8e234a32ca2f65e6f7dc56226f027adbe4ca836e05fba1f69b50a"
            },
            "downloads": -1,
            "filename": "PygroupBot-1.2.5.tar.gz",
            "has_sig": false,
            "md5_digest": "25e115824436ab07da5cb1efbb56d171",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5776,
            "upload_time": "2023-12-16T03:47:09",
            "upload_time_iso_8601": "2023-12-16T03:47:09.574002Z",
            "url": "https://files.pythonhosted.org/packages/13/37/c8e80b666ea435dd73677c16ec9d09b3f3c753e20a876b3393006fadebaf/PygroupBot-1.2.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-16 03:47:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ranujasanmir",
    "github_project": "pygroupbot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pygroupbot"
}
        
Elapsed time: 0.44176s