Git Product home page Git Product logo

laravel-starter's Introduction

[ARCHIVED] Laravel Starter for Telegram Bot SDK

This repo has been archived in favor of the scaffolding feature in our Laravel package.


Laravel starter for Telegram Bot SDK.

It comes with sample code to get you started developing Telegram Bots in Laravel.

Features

  • Multi-Bots.
  • Webhook.
  • Updates Polling.
  • Commands.
  • Event Listener.

Built with

Installation

  1. Create a new bot project using this starter project.
composer create-project telegram-bot-sdk/laravel-starter mybot
  1. Install Laravel Valet and use valet secure && valet share to retrieve a HTTPS URL that you can use it to setup a webhook with Telegram for testing.

  2. Edit your .env file and set your bot token in TELEGRAM_BOT_TOKEN= && ngrok hostname in TELEGRAM_WEBHOOK_DOMAIN= (Ex: randomstring.ap.ngrok.io)

  3. Setup the webhook with Telegram by firing the artisan command php artisan telegram:webhook:setup.

  4. Explore app directory for some examples.

  5. Build awesome bots and don't forget to list them on our Awesome Telegram Bots list.

Read docs to learn more about Telegram Bot SDK.

Webhook

If you've fired the above webhook setup artisan command, then a webhook will automatically be set with Telegram.

The webhook URL looks like: https://YOUR_DOMAIN/telegram/YOUR_BOT_TOKEN/YOUR_BOT_NAME

Incoming webhook requests from Telegram will automatically be verified, processed, and acknowledged to Telegram for you. You can listen to various events the SDK dispatches to process inbound updates. You'll find an example in this repo as you explore.

License

The Laravel Starter is open-sourced software licensed under the MIT license.

laravel-starter's People

Contributors

dependabot[bot] avatar irazasyed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.