GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FailsBot/cpppostbot: A simple C++ Telegram Channels Post helper bot

BranchesTags
Open more actions menu

Latest commit

 

History

40 Commits
40 Commits

Folders and files

NameName
Last commit message
Last commit date
cfg
cfg
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
README.md
README.md
 
 
bot_easy_api.cpp
bot_easy_api.cpp
 
 
bot_easy_api.h
bot_easy_api.h
 
 
bot_network.cpp
bot_network.cpp
 
 
botkey.h
botkey.h
 
 
build.sh
build.sh
 
 
const_str.h
const_str.h
 
 
json.hpp
json.hpp
 
 
main.cpp
main.cpp
 
 
termcolor.h
termcolor.h
 
 
tgtypes.h
tgtypes.h
 
 
writefn_data.c
writefn_data.c
 
 
writefn_data.h
writefn_data.h
 
 

Repository files navigation

Build Status

Channel Post helper bot

Configuration

  • Fill in the ./cfg/channelid with your channel ID and the ./cfg/channelname with your channel name for the bot, or else it can't help you with posting;
  • Fill in the ./cfg/ownerid and ./cfg/adminsids your Telegram account ID (or else you can't use admin and post commands);
  • Get a token and bot username from the @BotFather bot and fill in the file botkey.h;
  • Build bot via ./build.sh (or directly run the cmake in output directory with arguments);
  • Run in shell / cron / .sh-script / etc.
  • Have fun!

Dependencies

  • C++14 (you also could try to build with C++11 compiler);
  • cmake;
  • curl;
  • nlohmann json (file json.hpp);

Available Commands

  • /addadmin - adds a new admin for your channel. The bot will ask you user ID or @username of new admin. This user can post messages to your channel using your post command;
  • /cancel - cancels current command;
  • /removeadmin - removes admin from list. The bot will ask you user ID or @username of admin. Use the /cancel if you don't want to remove admin;
  • post command (default /post, see "Customizing Post Command" for change its name) - create a new post. This command is available only for users which user id is written in line of file ./cfg/adminsids or @username is written in line of file ./cfg/adminsnames. After using that command the bot will ask you for a message. So far it supports image messages, possible in future in will support any groups of messages.

Customizing Post Command

You can change the post command name writing the quoted string into the ./cfg/postcommandname file.

About

A simple C++ Telegram Channels Post helper bot

Topics

telegram-bot

Resources

Readme
Activity
Custom properties

Stars

15 stars

Watchers

2 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.