<?php class ForwardingAd extends Ads { public $imageLink; public $msgID; public $fromChatID; function __construct($adData) { parent::__construct($adData['adsID']); $this->setMessageID($adData['msgID']); $this->setFromChatID($adData['chatID']); $this->setAdsLimit($adData['adsLimit']); } function setMessageID($msgID){ // $this->setType(Ads::$TypeImage); $this->msgID = $msgID; return $this; } function setFromChatID($fromChatID ){ // $this->setType(Ads::$TypeImage); $this->fromChatID = $fromChatID; return $this; } public function send(User $user){ return $this->forwardTo($user); } public function forwardTo($user){ return $this->TG->forwardMessageFromTo($this->msgID,$this->fromChatID, $user->chatId); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Ads.class.php | File | 4.23 KB | 0755 |
|
Damnoosh.class.php | File | 613 B | 0755 |
|
DiwarAds.class.php | File | 610 B | 0755 |
|
ForwardingAd.class.php | File | 865 B | 0755 |
|
HashemiAds.class.php | File | 428 B | 0755 |
|
ImageAds.class.php | File | 495 B | 0755 |
|
hashemi.jpg | File | 109.55 KB | 0755 |
|