tgbot | Modular telegram group management bot | Bot library

 by   PaulSonOfLars Python Version: Current License: GPL-3.0

kandi X-RAY | tgbot Summary

kandi X-RAY | tgbot Summary

tgbot is a Python library typically used in Automation, Bot applications. tgbot has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has low support. You can download it from GitHub, GitLab.

A modular telegram Python bot running on python3 with an sqlalchemy database. Originally a simple group management bot with multiple admin features, it has evolved into becoming a basis for modular bots aiming to provide simple plugin expansion via a simple drag and drop. Can be found on telegram as Marie. For questions regarding creating your own bot, please head to this chat where you'll find a group of volunteers to help. We'll also help when a database schema changes, and some table column needs to be modified/added (this info can also be found in the commit messages). Join the news channel if you just want to stay in the loop about new features or announcements. Marie and I can also be found moderating the marie support group aimed at providing help setting up Marie in your chats (not for bot clones). Feel free to join to report bugs, and stay in the loop on the status of the bot development. Note to maintainers that all schema changes will be found in the commit messages, and its their responsibility to read any new commits.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              tgbot has a low active ecosystem.
              It has 588 star(s) with 940 fork(s). There are 45 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 38 have been closed. On average issues are closed in 10 days. There are 10 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of tgbot is current.

            kandi-Quality Quality

              tgbot has no bugs reported.

            kandi-Security Security

              tgbot has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              tgbot is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              tgbot releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed tgbot and discovered the below as its top functions. This is intended to give you an instant insight into tgbot implemented functionality, and help decide if they suit your requirements.
            • Gban a user
            • Get user ID from username
            • Return the user id from a reply message
            • Extract user and text from a message
            • Banned a user
            • Extract time from time
            • Check if a user is banned
            • Temporarily mute a user
            • Returns True if the user is an administrator
            • Substitute a string
            • Unlock the chat
            • Deal with left message
            • Displays a help button
            • Purge messages from the chat
            • Kick a user
            • Unute the user
            • Promote a user
            • Send the goodbye message
            • Send welcome message
            • Unban a user
            • Process an update
            • Renders a button button on the bot
            • Send a new member
            • Ungban a user
            • Reply to the chat
            • Show user info
            Get all kandi verified functions for this library.

            tgbot Key Features

            No Key Features are available at this moment for tgbot.

            tgbot Examples and Code Snippets

            No Code Snippets are available at this moment for tgbot.

            Community Discussions

            QUESTION

            Externing a C++ class to avoid including its header file
            Asked 2021-May-20 at 08:07

            I have created a static library for the following class, libtgbotengine.a and externed the class to be used in a different project.

            tgbotengine.h

            ...

            ANSWER

            Answered 2021-May-20 at 07:42

            IMHO: What you want to do is not possible.

            The header file of your library is like a blue print for your class.

            Lets extend the example of TgBotEngine:

            Source https://stackoverflow.com/questions/67615213

            QUESTION

            How to install phantomjs and selenium with docker-compose on linux server?
            Asked 2020-Nov-10 at 15:26

            I am using selenium and phantomjs for my web scrapper. All works great with my test windows app. Trying to add this code update to my main app, deployed with docker-compose, and i get this: selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH.

            How should i fix this? currently my docker-compose.yml has this code:

            ...

            ANSWER

            Answered 2020-Nov-10 at 15:26

            There are few problems with your configuration:

            1. Your bot code is working in different container. Not in that one that launches phantomjs. This is why it cannot find the executable.
            2. You run phantomjs container not within the same network as your code
            3. There are useless configs which seem to be copypasted from some other example.
            4. You force your containers to restart. It will be restarting even after the successful exit code.

            So here is the complete example how to run everything:

            1. Create empty folder myfolder and put there app.py with the following content:

            Source https://stackoverflow.com/questions/64768864

            QUESTION

            How to log unicode nicknames in telegram?
            Asked 2020-Oct-09 at 17:25

            I am making a telegram bot and I want to log the nicknames of those who use it. Made it simple:

            ...

            ANSWER

            Answered 2020-Oct-09 at 17:25

            As I understand it, the solution to my problem is that it's time to update python to version 3.9, but since I have 3.7 I made logging via standard stream to a file, because it is impossible to explicitly specify the encoding in the logging library

            Source https://stackoverflow.com/questions/64277434

            QUESTION

            docker-compose not copying files into tmp folder to create container
            Asked 2020-May-07 at 08:42

            I have a container for a Telegram bot running in a docker container which is being built via following Dockerfile:

            ...

            ANSWER

            Answered 2020-May-07 at 08:42

            Solved it by removing .dockerignore file.

            [EDIT] Reason: the .dockerignore file included lines which ignore every folder that was not include, src or the file CMakeLists.txt:

            Source https://stackoverflow.com/questions/61630126

            QUESTION

            TgBot doesn't find owner ban power
            Asked 2020-Jan-22 at 15:22

            I've started programming my own telegram-bot in cpp with tgbot-cpp and I've done the code for the ban. When the code checks if the user has the power to ban, it finds the needed power for admins, but not for the owner of the group. I looked in the documentation if there was a way to find the owner of the group, but I couldn't find it. This is the code section that checks the power.

            ...

            ANSWER

            Answered 2020-Jan-22 at 15:22

            After looking better in the documentations, there is a value status for ChatMember that is setted to creator for the owner of the group. That seems to be the way for checking if someone is the owner or not, avoiding the permission issue

            Source https://stackoverflow.com/questions/59634153

            QUESTION

            What configurations do I need in CMake so that I can build the project?
            Asked 2019-Jan-27 at 15:28

            I want to build the following project: https://github.com/reo7sp/tgbot-cpp

            I get these errors: https://imgur.com/S9kgWyv

            Makefile part 1: https://imgur.com/O222bJR

            Makefile part 2: https://imgur.com/i68QLdC

            Now, I think that I need zlib, openssl and boost. Curl seems to be optional.

            What is "threads"?

            And what is the difference between ...LIBRARY_DEBUG and ...LIBRARY_RELEASE?

            What doe LIB and SSL mean in the gui? These "libraries" are not mentioned in the makefile?

            I am desperate for days now. Please, help me.

            Error:

            ...

            ANSWER

            Answered 2019-Jan-27 at 15:28

            It turned out that I needed to set some system variables for OpenSSL, ZLib, Boost, curl. For Zlib just do the same procedure. drescherjm was a huge help. So thanks!

            Tutorial for this:

            OpenSSL: https://www.youtube.com/watch?v=3I7eL2Mm6Ps&index=34&t=0s&list=PLcmZ3Jkh7taY1ensPUAJ4VfMEicDcihhg

            and

            curl: How do I install and use curl on Windows?

            Setting up curl library path in cmake

            Source https://stackoverflow.com/questions/54371276

            QUESTION

            Could not find the following Boost libraries: boost_system
            Asked 2019-Jan-27 at 09:49

            I want to build this repository: https://github.com/reo7sp/tgbot-cpp.

            It is an API for managing Telegram bots. The needed dependencies are openssl, zlib, boost. Curl is optional.

            How I installed libraries and cmake

            Boost was compiled with:

            ...

            ANSWER

            Answered 2019-Jan-26 at 14:36

            According to your comments, the location for Boost is D:/Programme/Boost/boost_1_69_0/stage/lib, but you set it to D:/Programme/Boost/boost_1_69_0/lib.

            Anyway, Boost can be found if you set (usually manually, in the CMake UI rather than in the CMakeLists.txt file) BOOST_ROOT to D:/Programme/Boost/boost_1_69_0 with FIND_PACKAGE(Boost).

            This will in turn set all the Boost_* variables that you need to use.

            Source https://stackoverflow.com/questions/54378962

            QUESTION

            Syntax error flask application
            Asked 2018-Apr-11 at 22:27

            I have following code:

            t1 = threading.Thread(target = app.run, args = (host='0.0.0.0', port = 443))

            and it gives me an error:

            ...

            ANSWER

            Answered 2018-Apr-11 at 22:01

            The sequential arguments for app.run can be passed in a tuple (constructed with parentheses, but no names). The named arguments must be passed in a dictionary. Dictionaries are constructed with dict() or curly braces, not parentheses.

            Since host and port are the first two arguments to app.run, any of the following should work:

            Source https://stackoverflow.com/questions/49784953

            QUESTION

            json.Unmarshal not decoding into inner interface{} correctly
            Asked 2017-Feb-25 at 19:10

            I'm developing a Telegram Bot API wrapper for Golang (I know there are already some but I'm doing this for learning). I have a Response struct:

            ...

            ANSWER

            Answered 2017-Feb-25 at 18:02

            Make it a json.RawMessage and unmarshal it in a second step, when you're sure what type it is.

            Take a look at the examples at https://golang.org/pkg/encoding/json/#RawMessage.

            Source https://stackoverflow.com/questions/42459498

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install tgbot

            Please make sure to use python3.6, as I cannot guarantee everything will work as expected on older python versions! This is because markdown parsing is done by iterating through a dict, which are ordered by default in 3.6.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/PaulSonOfLars/tgbot.git

          • CLI

            gh repo clone PaulSonOfLars/tgbot

          • sshUrl

            git@github.com:PaulSonOfLars/tgbot.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link