Telegram UserBot - next generation link trading      v0.0094

100% Opensource.

Developer: Propapanda, Semi --------
Testguru : Thomas

Telegram Channel: https://t.me/PandaBot007
Github: https://github.com/Propapanda666

Pandabot use MadelineProto as Telegram Client Library:
Telegram Channel: https://t.me/MadelineProto
Documentation: https://docs.madelineproto.xyz/
Download: https://github.com/danog/MadelineProto
Prereqiured: https://docs.madelineproto.xyz/docs/REQUIREMENTS.html

Additonal needed: PHP Postgres Module, PHP Yaml Module, PostgreSQL Server, Webserver

Attention!!! Telegram allow only 2000 requests per hour! Config ur channels.conf be carefully!
Flood wait change the behavior of ur normal TG-Client(s), u can't send messages, view pictures, videos, and forwards are not allowed!
or simple: u can do nothing... :-/

Attention !! If a phone number is brand new, it will be closely monitored by Telegram for abuse, and it can even already be considered a bad user due to bad behavior from the previous owner of that phone number (which may happen often with VoIP or other easy-to-buy-online numbers, so expect fast ban)

You may want to use your new phone number account with an official Telegram client and act like a normal user for some time (some weeks/months), before using the bot.

max. message limit per chan: 1006000

Configuration:

edit conf/pandabot.conf - database settings, recover forward queue, botcommand
edit conf/channels.conf:

# simple section conf:

uniqueName123:
from: channelid1
to:
- channelid2

prepare system(once):
centos9: ./prepare_centos9.sh

setup telegram session(once):
./bot.sh setuptg

start/ stop:
./bot.sh

What is new?
++ 0.0094
* we welcome semi as new code bro ---------
* update MadelineProto to 8.3.0
** some bugfixes (including corrupted non premium member downloads)
* flood fix: deleteMarkedMessagesJob() only delete 50 messages in a bulk...
* new file type: movie4gb (means movies with min. resolution fhd and min. filesize 2.5gb+)
* search bugfixed
* some improvments

++ 0.0093
* channels.conf
** repostinfomsg
*** repostinfomsg user must be admin or creator @ repostinfo channel
* bot will set channels thats not longer present to status nook
* user managment first step

++ 0.0092
* admincommands
** lastbotcommands customized
* channels.conf
** sectionname has been changed from name to 'name' - single quotes are necessary! (bot will rewrite ur old config!)
** repostinfomsg
*** only usefull @ group/ topic channels! (update soon...)
*** repostinfomsg: <msgid>:<time>:<timemode>:<topic> # eg. repostinfomsg: 1234:30:minutes:-1 (-1 no topic, otherwise topicid)
**** will forward msg 1234 all 30 minutes into same channel:[topic]
* some bugfixes

++ 0.0091
* channels.conf
** channelbotname - overwrites pandabot.conf:botcommand to channelspecfic name eg. adam or eva or ...
* admincommands
** setchannel
*** channelbotname
** loadconfig [yes]
* redirect
** fixed search && lastX with option channel:current when redirect_tochannel is set
* search customized

++ 0.0090
* attributes quick stability release
* !search order changed, will print first the best resolution with the biggest size

++ 0.0089
* version info in !<command> help
* admincommands
** lastbotcommands (show last user bot requests)

++ 0.0088
* release skipped

++ 0.00871
* bugfix release
* new typemapping @ audio: dsf

++ 0.0087
* admincommands
** channelstatus <channelid> [dump]
** clearqueue (will clear database queue)
** setchannel <channelid> <key> <value> (to change "some" channel settings @ runtime)
* redirect out mode

++ 0.0086
* still alive

++ 0.0085
* still alive

++ 0.0084
* some improvments
* some bugfixes
* do not bugreport anythink
*** these release is buggy ^3 - dont try it on topic-channels!

++ 0.0083
* pandabot.conf: botsh_restart_wait_timer (in seconds)
** means the sleep timer ./bot.sh restart
* madeline upgrade
* some improvments
* some bugfixes
* download <link>
*** these release is buggy ^3 - dont try it on topic-channels!

++ 0.0082
* request mode: <requestcommand> #resolve <title> <year>, do manualy remove requests
* webfrontend: little improvments
* username bugfix, very big thanks to tom

++ 0.0081
* wtf

++ 0.0080
* request mode: <requestcommand> list
* webfrontend: escape key will close some info/ edit windows

++ 0.0079
* bugfix release
* webfrontend, some little improvments

++ 0.0078
* bot.sh some little improvments
* request mode (channels.conf mode: ir)
** pandabot.conf, new option: requestcommand
** experimental!
*** only for movie exchange groups suitable!
*** matrix:
#<requestcommand> <title> <year> # trigger bot
reply on these request, will marked the request fulfilled
* bot will delete hes own messages after two - three minutes
* webfrontend: some usefull tooltips
* some bugfixes/ improvments

++ 0.0077
* shared memory scaled up
* webfrontend display now channels.conf
** attention, read only
* search option -> topic:<topicname>
* update bot.sh, show now apache http://ip:port/

++ 0.0076
* webfrontend: some improvments
* bot.sh new option status

++ 0.0075
* bugfix forward counter after 1 hour...
* start.sh, stop.sh, apache.sh setup_session.php deprecaded
** ./bot.sh new start/stop script
*** usage:
./bot.sh start
./bot.sh stop
./bot.sh restart

./bot.sh setuptg

./bot.sh start   -s [bot|web]
./bot.sh stop    -s [bot|web]
./bot.sh restart -s [bot|web]
eg.
./bot.sh restart -s bot
./bot.sh restart -s web

* webfrontend: botcmd: start, stop, restart, ...now working
** some improvments

++ 0.0074
* webfrontend/ Bot: queue, act forwards
** test release - shared memory (ipc)
* new types: audiobooks, ebooks

++ 0.0073
* start.sh: when bot start as root, usercontext will change to nobody
* bugfix autosync
* webfrontend: botcmd: start/ stop/ restart - not working, experimental
* webfrontend: logfile view: performance bugfix
* webfrontend: ./apache.sh

++ 0.0072
* dummbatz

++ 0.0071
* bugfix disabled: true / not on channel condition
* typemapping: all - means all post but no clear message posts
* prepare_centos9.sh updated
* optional: start webfrontend ./apache.sh
** experimental
** check pandabot.conf
** WebFrontend: Logfile show, development on the way

++ 0.0070
* lastX for topic channel improved !botname last5 <topicname>
* new bot statistic - alltimeforwards ?!?
* new channels.conf option, disabled: [true|updatedb] (true=channel complete disabled, updatedb=database will be updated - forward into channel disabled)
* backgroundworker renamed to channelReader, lock_table will not longer droped but appended
* bckStepper renamed to chnStepper

What is new?
++ 0.0069
* search results will print no longer sticker
* add typemapping: moviefhd (fhd(+) and size over 1.7gb)
* CHAT_ADMIN_REQUIRED errorhandling added - will be ignored
* autosync force mode

What is new?
++ 0.0068
* search result formating adjusted
* lastX adjusted
* exception: WORKER_BUSY_TOO_LONG_RETRY, improved
* backgroundworker logoutput changed, show now current message, no steps

What is new?
++ 0.0067
* floodwait prevention improved
* if exception floodwait drop, forwardqueue will be recovered
* exception: WORKER_BUSY_TOO_LONG_RETRY will be ignored
* type: movie, duration changed from 70 to 75 minutes
* backgroundworker sql speed up and bugfixed data inconsity
* backgroundworker improved, message type not longer ignored
* autosync sql speed up

++ 0.0066
* cover fix, he will now not use picture one message befor, when it is an album post
* type mapping: archive customized
* channels.conf: autosync enabled
* search: add type: application
* search: improved (mp3/ flac)
* 1.400 forwards per hour

++ 0.0065
* ascii logo improved :-)
* bot will stop after 1.200 forwards per hour, forward queue will be hold and grow during stop forwarding and work again after stoptime.
** u will clear the forward queue? change "recover forward queue" @ pandabot.conf to: "no"
*** But, thats will not help, when u not change ur channels.conf usefully!
* github: https://github.com/Propapanda666/pandabot - pandabot goes public

++ 0.0064
* album handling improved
* pandabot.conf: forward queue will be recovered from database after restart, kill or "bluescreen"
** option: recover forward queue: yes (or no, no is simliar to remove all old forwards from db)

++ 0.0063
* major bug fixed(?), test release
* forward queue is now persisted in database, but, has no impact on bot behavoir, option in pandabot.conf "recover forward queue:" can be ignored.
* some code changes...

++ 0.0062
* add type mapping: archive (means packages, rar, zip. eg.)
* channels.conf: bottopic dropped, bot will answer now in the right topic on forum groups
* channels.conf: flac and mp3 has now no min. duration

++ 0.0061
* add mimetype mapping: mp3, flac, audio, movie, video (default: video min. duration 15 min.)
** more information in channels.conf after start the bot
* exception handling: WORKER_BUSY_TOO_LONG_RETRY retry 5 times

++ 0.006 - stability
* count forwardqueue shows now the real count of all forwards @ queue
* channels.conf: from: has now an option to forward from specificated topic on forumgroups, syntax: from: channelid:topic:topicid
* channels.conf: add channelstatus: restriction_reason (porn, copyright)
* channels.conf: fwdmsg is dropped - use !<botname> help, !<botname> last5 or !<botname> search when u want to know which resolution has a video
* admincommands: will now delete old admin commands automatical
* errorhandling improved, pandabot-exception handler implemented
** some telegram requests catched, Request timeout - will now wait 30 sec. and resend x times... can be better :& extend madeline class...
* cover fix: now he's dont forward pictures(msgbefor cover) which not from the same user who upload/ forward the media file
* autosync is disabled(and not in release) - will come with the next release, better than bevor. :-)
* many, many, many code changes ;-)

++ 0.005
* database changed from sqlite to postgres
** php postgres module is needed!-
*** database settings in conf/pandabot.conf
* channelparser complete rewriten
** database: channel tables improved, he write now all messages into channel tables
* new channel botcommand: help
* job handling (a little bit) improved
* forward exception handling integrated (FLOOD_WAIT_X)
** if bot running in flood wait, he will wait X secounds
** admin command: stats improved, will now show floot wait pauses and print forward queue informations
** logfile output: "bot is still alive" will change memory output to flood wait timer...
*** hint: 2k forwards eg. hits per hour to tg allow!
*** be carefully, how many "to" channels be configured..

++ 0.0041
* forward improved, reduce database & tg traffic && forward queue overhead

++ 0.004
* admin command: reloadconfig
* forward complete recoded

++ 0.00394
* admin commands: topics - improved
* admin commands: channelstatus - improved
* changed: start.sh
* pandabot can't be start twice anymore
* channelHelper.php removed
* new pandabot.conf in conf/pandabot.conf
** askcommand now in conf/pandabot.conf -> botcommand (without !)
* new channels.conf in conf/channels.conf
** take buildPandabotConf.php to upgrade ur old $channel settings into channels.conf format
** attention! in these version only takes the first channel from to: section @ channels.conf
*** php yaml module is needed!

++ 0.00393
* admin commands: topics
* logfile dir log/
* moved liveWorker.php to bin/pandabot.php
* changed start.sh
* new forwarding recoded/ fixed/ disabled (and fixed, and fixed and... :/) -- attention memoryhole...
* some bug fixes
* beer support is downright awful

++ 0.00392
* u need yaml php module
* forwarding recoded
* pandabot.nfo