Download the PHP package miqdadyyy/laraveltelegrambot without Composer

On this page you can find all versions of the php package miqdadyyy/laraveltelegrambot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laraveltelegrambot

LaravelTelegramBot

Laravel 6 package to manage Telegram Bot

Preparation

Installation

Via Composer

Usage

Methods

Get Bot ID

This method is used for get your bot identity

Request Parameter : -

Response :

Get Updates

This method is used for get all of your bot updates. Bot update is message or callback from user to your bot

Request Parameter : -

Response :

Create Message

You can create a message to send a user by chat_id.

Here is several options available for telegram bot

No Option Description Value
1 parse_mode You can parse your message into HTML or Markdown 'html' or 'markdown'
2 disable_web_page_preview Disables link previews for links in this message true or false
3 disable_notification Sends the message silently. Users will receive a notification with no sound. true or false
4 reply_to_message_id If the message is a reply, ID of the original message Integer
5 reply_markup Additional interface options, we already make method for this array

After creating message with several options, if you want to send the message you should add :

When you want to send message directly, you can use

Inline Keyboard

This object represents one button of an inline keyboard.

Example :

To create Inline Keyboard :

To add lines to the keyboard

But you need to add button each row

There are 2 types inline keyboard button in this package (URL and callback), you can pass a query_callback or a url to callback parameters

The complete code to make button like example are :

if you want to add a single button on message just :

Keyboard Button

The keyboard button be like

In this package, keyboard button will always showed up but you can change the button. When button choosed it will only send a message to bot as the title of button

To make this keyboard button more easier than Inline Keyboard

Webhook

This webhook is used to get message from user to your application and you can response their message customly.

Requirements

Install Webhook

Remove Webhook

When you install webhook to your bots, method getUpdates() will not work for development. To remove webhook just run :

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.


All versions of laraveltelegrambot with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~5|~6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package miqdadyyy/laraveltelegrambot contains the following files

Loading the files please wait ....