2017 © Pedro Peláez
 

library telegrammsg

Sends a message to a Telegram bot

image

pqrs/telegrammsg

Sends a message to a Telegram bot

  • Friday, May 4, 2018
  • by pqrs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

TelegramMSG

Sends messages to a telegram bot, (*1)

Installation

composer require pqrs/telegrammsg=dev-master

Alternatively, add the dependency directly to your composer.json file:, (*2)

"require": {
    "pqrs/telegrammsg": "dev-master"
}

Usage

``` php require_once DIR . '/vendor/autoload.php'; // Autoload files using Composer autoload, (*3)

use TelegramMsg\Message;, (*4)

define( "TELEGRAM_USER_ID", "XXXXXXXX" ); define( "BOT_AUTH_TOKEN", "XXXXXXXXX:XXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX" );, (*5)

Message::send( TELEGRAM_USER_ID, BOT_AUTH_TOKEN, "This is a test" );, (*6)

```, (*7)

Contributing

Contributions are of course very welcome!, (*8)

Credits

Copyright © 2018 Alvaro Piqueras - pqrs, (*9)

License

This project is licensed under the MIT License - see the LICENSE file for details., (*10)

The Versions

04/05 2018

dev-master

9999999-dev

Sends a message to a Telegram bot

  Sources   Download

MIT

The Requires

 

by Avatar pqrs