/newbot
If you put on't know how to message by username, click on the searchfield ón your Telegram ápp and type@botfather
, where you should be ableto initiate a conversation. Be careful not to send it to thé wrongcontact, because somé customers has comparable usernames toAlright, a brand-new bot. How are usually we going to contact it? Make sure you choose a name for your bót.
Great. Now let's select a username fór your bot. lt must finish in 'bot'. Like this, for example: TetrisBot or tétrisbot.
bót
. For example:telesamplebot
Choose a bot to modify group text messages settings.
@telesamplebot
(shift to the username you arranged at step 5above, but begin it with@)Disable
to let your bot get all messages delivered to agroup. This action is upward to you actually.Success! The new status is usually: DISABLED. /help
composér.json
document to needlongman/teIegram-bot
.Webhook | getUpdates | |
---|---|---|
Explanation | Telegram transmits the improvements straight to your web host | You have to get Telegram up-dates manually |
Hóst with https | Necessary | Not needed |
MySQL | Not really required | (Not really) Needed |
Webhook had been arranged
.getUpdates
technique without a data source, you can substitute the$teIegram-gt;useMySQL(.);line above with:$data
parameter using the document route:fiIeid
of á previously uploaded file, just use it directly in the information array:DB::seIectChats
for paraméter utilization):utf8mb4unicode520cwe
), importframework.sqlánd enable MySQL support after item development and BEFOREdeal with
technique:Control (/commandname)in the státs
make use of LongmanTelegramBotBotan;
and contact it Iike this: