tgbot | Modular telegram group management bot | Bot library
kandi X-RAY | tgbot Summary
kandi X-RAY | tgbot Summary
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
Top functions reviewed by kandi - BETA
- 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
tgbot Key Features
tgbot Examples and Code Snippets
Community Discussions
Trending Discussions on tgbot
QUESTION
I have created a static library for the following class, libtgbotengine.a
and extern
ed the class to be used in a different project.
tgbotengine.h
...ANSWER
Answered 2021-May-20 at 07:42IMHO: 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:
QUESTION
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:26There are few problems with your configuration:
- Your bot code is working in different container. Not in that one that launches phantomjs. This is why it cannot find the executable.
- You run phantomjs container not within the same network as your code
- There are useless configs which seem to be copypasted from some other example.
- 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:
- Create empty folder
myfolder
and put thereapp.py
with the following content:
QUESTION
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:25As 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
QUESTION
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:42Solved 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
:
QUESTION
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:22After 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
QUESTION
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:28It 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
QUESTION
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 cmakeBoost was compiled with:
...ANSWER
Answered 2019-Jan-26 at 14:36According 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.
QUESTION
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:01The 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:
QUESTION
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:02Make 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.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tgbot
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page