Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Telegram bot written in PHP Lumen

NotificationsYou must be signed in to change notification settings

teknologi-umum/telephant

Repository files navigation

Telegram bot in php

Setup

  1. Installation
git clone https://github.com/teknologi-umum/telephant
  1. Create telegram bot and onfig.env. Take reference from.env.example
DB_HOST=127.0.0.1DB_DATABASE=database_nameDB_USERNAME=usernameDB_PASSWORD=passwordTELEGRAM_BOT_API_KEY=my_telegram:api_keyTELEGRAM_BOT_USERNAME=my_telegram_username_botTELEGRAM_BOT_WEBHOOK_URL=https://my.telegram.callback/hook

Make sure the root of thetelephant app is located inhttps://my.telegram.callback

  1. Installcomposer dependencies in project root directory
composer install

Building

  1. Run python build script with filename
./build.py bot.zip

Setting webhook URL

  1. Call the init http endpoint URL in your in your browser (or GET request):
https://my.telegram.callback/init

Congrats. Your telegram bot has been set up. Enjoy!

Seehttps://github.com/teknologi-umum/telephant/blob/main/bot-command-list.txt to tellBotFather in telegram this bot's commands.

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp