Ejemplo n.º 1
1
 protected function textCommand() : \Generator
 {
     $newText = $this->message->text . "\n edit-text";
     $method = new EditMessageText($newText);
     $method->setMessageId($this->message->messageId);
     $method->setChatId($this->message->chat->id);
     $this->inlineKeyboardMarkup = null;
     $this->message = (yield from $this->api->execute($method));
 }
 public function testGetSetChatId()
 {
     $method = new EditMessageText('Some New Text');
     $this->assertNull($method->getChatId());
     $method->setChatId('@chatid');
     $this->assertEquals('@chatid', $method->getChatId());
 }