schnoog/mediatelegram

There is no license information available for the latest version (0.3.6) of this package.

Maintainers

Details

github.com/schnoog/mediatelegram

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Type:project

0.3.6 2018-04-25 17:43 UTC

This package is not auto-updated.

Last update: 2020-08-08 07:09:18 UTC


README

https://github.com/schnoog/mediatelegram

Telegram-Bot for videofiles download

  • Youtube (Video & mp3)
  • Twitter (Video)
  • Facebook (Video)
  • Misc. other video platforms (supported by youtube-dl)

Requirements

  • php >= 5.5
  • Composer
  • MySQL-datebase
  • FFMpeg (needs to be executable by the webserver)
  • mp4box (needs to be executable by the webserver)
  • youtube-dl (needs to be executable by the webserver)
  • Webserver with valid SSL certificate (for webhook)

Installation

Get the files

Composer only

composer create-project schnoog/mediatelegram

Git & Composer

-Create the target directory and cd into it -Clone this repo git clone https://github.com/schnoog/mediatelegram.git . -Install the composer depencies composer install

Prepare & Config

  1. Import the structure.sql delivered with telegram-bot ./vendor/longman/telegram-bot/structure.sql
  2. Import the sql-Code mentioned in FirstSteps/Database_Setup.txt ./FirstSteps/Database_Setup.txt
  3. Create and edit the config.php cp include/config.php.dist include/config.php

Usage

Manual call

Simply open the getUpdatesCLI.php php getUpdatesCLI.php or open it in you browser on your webserver getUpdatesCLI.php

Webhook

Open the sethook.php with supplied secret $Config['seccode'] in your browser https://YourBotsURL/sethook.php?secret=YourSecret This will install the webhook and every new command sent to the server will be processed