\App\Http\TraitsTelegramTrait

For obtaining telegram chat details and sending messages.

Class TelegramTrait

Summary

Methods
Properties
Constants
__construct()
checkChatID()
getChatID()
sendTelegram()
No public properties found
No constants found
No protected methods found
$telegram
N/A
No private methods found
No private properties found
N/A

Properties

$telegram

$telegram : 

Type

Methods

__construct()

__construct() 

checkChatID()

checkChatID() : boolean

Checking if there are any conversations to the bot.

Returns

boolean

getChatID()

getChatID() : mixed

if there are conversations returning the chat id.

Returns

mixed

sendTelegram()

sendTelegram(string  $msg) : integer

Send message to user's telegram.

Parameters

string $msg

Order related message e.g. Order no

Returns

integer