โ Que. How to get/set other users properties via telegram id?
//To set properties
$user->setPropTG('name', '1234567890', 'John Doe');
//To get properties
$name = $user->getPropTG('name', '1234567890');
Please open Telegram to view this post
VIEW IN TELEGRAM
1 6โค1
๐ค How to Use Telegram Api's In BBU๐
$api->sendMessage([
'chat_id' => $chat_id,
'text' => "Hello World"
]);
$response = $api->sendMessage([
'chat_id' => $chat_id,
'text' => "Hello World",
]);
$api->editMessageText([
'chat_id' => $chat_id,
'text' => "Bye World",
'message_id' => $response->result->message_id
]);
$api->editMessageText([
'chat_id' => $chat_id,
'text' => "Bye World",
'message_id' => $callback_query->message->message_id
]);
$api->sendPhoto([
'chat_id' => $chat_id,
'photo' => "https://www.google.co.in/images/branding/googlelogo/2x/googlelogo_color_160x56dp.png",
]);
$response = $api->sendPhoto([
'chat_id' => $chat_id,
'photo' => "https://www.google.co.in/images/branding/googlelogo/2x/googlelogo_color_160x56dp.png",
]);
$api->editMessageCaption([
'chat_id' => $chat_id,
'caption' => "Bye World",
'message_id' => $response->result->message_id
]);
$api->editMessageCaption([
'chat_id' => $chat_id,
'caption' => "Bye World",
'message_id' => $callback_query->message->message_id
]);
$api->sendDocument([
'chat_id' => $chat_id,
'document' => "https://www.google.co.in/images/branding/googlelogo/2x/googlelogo_color_160x56dp.png",
]);
$api->sendAudio([
'chat_id' => $chat_id,
'audio' => "CQACAgQAAxkDAAINRWcME7iyyAnpQWsF14FTnu_JYKA9AAJCBgACMxNkULevRePngBJSNgQ",
]);
$api->sendVideo([
'chat_id' => $chat_id,
'video' => "BAACAgUAAxkDAAINWGcMFImZBWSxWZu_CQoy_AABEdSM6AAC3w8AAsoO6VcxVmhw-v5CWDYE",
]);
$api->sendAnimation([
'chat_id' => $chat_id,
'animation' => "CgACAgQAAxkDAAINrWcMHN5wBJli7khbzcqjtsOJMjRIAAL9BgACJVRkUNf0YbGreu6gNgQ",
]);
$api->answerCallbackQuery([
'callback_query_id' => $callback_query->id,
'text' => "Hello World",
//'show_alert' => true /*if you want to show as alert*/
]);
$api->sendDice([
'chat_id' => $chat_id,
'emoji' => "๐ฒ"
]);
Please open Telegram to view this post
VIEW IN TELEGRAM
1 6โค4๐ฅ2๐ฅฐ1
Anonymous Poll
20%
77%
3%
1 13๐ฅฐ2
BotBuildUp News
Please open Telegram to view this post
VIEW IN TELEGRAM
1 8๐1
BotBuildUp News
Please open Telegram to view this post
VIEW IN TELEGRAM
1 5โค1๐ฅ1
We've added 2 new functions today, which might make coding a bit easier for you! ๐ป ๐ค
1. We have found that using entities can send errors sometimes, so we have added utils::parse_txt function, you can use the below example
2. If you are looking to get an answer from the user command specific you may find utils::get_params function, you can use the example below
๐ Comment What's Next? Or Request Feature In Comment
1. We have found that using entities can send errors sometimes, so we have added utils::parse_txt function, you can use the below example
//Syntax
//parse_txt($text/*required*/, 'Markdown'/*optional,default:Markdown*/)
//Usage
/*command name:acceptemail
answer: Send your email id
wait for answer: on
code:
*/
$parsedemail = utils::parse_txt($text,'Markdown');
$api->sendMessage([
'chat_id' => $chat_id,
'parse_mode' => 'Markdown',
'text' => "*your email {$parsedemail}*"
]);
2. If you are looking to get an answer from the user command specific you may find utils::get_params function, you can use the example below
//Syntax
//get_params($text/*optional,default:text*/,2/* from user,optional,default:0*/)
//Usage
/*command name:/setcolor
code:
*/
$params = utils::get_params(null,2);
$color=$params[1];
$api->sendMessage([
'chat_id' => $chat_id,
'text' => "your color set :{$color}"
]);
//Usage
//User can set color like
//setcolor blue
//Result: your color set to: blue
Please open Telegram to view this post
VIEW IN TELEGRAM
1 8๐2
1 6๐ฅฐ1
Happy Diwali to everyone! May this festival of lights bring joy and warmth to your life and strengthen the bonds within your families.๐ค
In addition, we have a special gift for you, which we will unveil during Diwali celebrations. Wishing you all a wonderful and prosperous festival!๐ฅ
In addition, we have a special gift for you, which we will unveil during Diwali celebrations. Wishing you all a wonderful and prosperous festival!
Please open Telegram to view this post
VIEW IN TELEGRAM
1 5
BotBuildUp News
Happy Diwali to everyone! May this festival of lights bring joy and warmth to your life and strengthen the bonds within your families.๐ค In addition, we have a special gift for you, which we will unveil during Diwali celebrations. Wishing you all a wonderfulโฆ
We appreciate your patience as we finalize your special giftโit will be ready for you soon!๐ โจ
In addition, weโre thrilled to announce that weโre considering offering compensation to those talented bot coders who develop their own bots in our community.Together, letโs build a vibrant community where innovation thrives. We believe in rewarding contributions based on the value they bring to our collective journey.๐ป ๐ค Your expertise and creativity deserve recognition!
Stay tuned for more updates, and letโs continue to inspire each other!
Please open Telegram to view this post
VIEW IN TELEGRAM
1 11๐1