Link Search Menu Expand Document

Method: payments.getGiveawayInfo

Back to methods index

Obtain information about a Telegram Premium giveaway ».


peerUsername, chat ID, Update, Message or InputPeerThe peer where the giveaway was posted.Optional
msg_idintMessage ID of the messageActionGiveawayLaunch service messageOptional

Return type: payments.GiveawayInfo

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$payments_GiveawayInfo = $MadelineProto->payments->getGiveawayInfo(peer: $InputPeer, msg_id: $int, );