2016-09-19 5 views
4

사진과 함께 긴 텍스트를 전신 보내려면 전신 이미지 캡션을 200 자 제한이 필요합니다. 어떻게 PHP와 봇을 사용하여 사진으로 긴 텍스트를 보낼 수 있습니까? sendPhoto 메소드의 글자 수 제한은 200 자입니다. 전보국이 긴 텍스트를 보내고 사진은 내 샘플 사진을 봅니다.ph bot으로 전보 사진으로 긴 메시지 보내기

this is a sample image send to telegrem

답변

4

당신은 parse_mode 마크 다운 또는 HTML 표준 메시지를 보낼 수 있습니다. 필요한 텍스트 콘텐츠에 이미지 링크를 보내주십시오. https://core.telegram.org/bots/api#markdown-style

Some words [/start](https://www.google.ru/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png) 
ok. 
You will see google's logo in the bottom of message. The blue line on the left of the image indicates that it is the parsing contents of the link 
+0

감사합니다. 드미트리 전에 사용했지만 [/start](https://www.google.ru/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png) 메시지를 표시 할 때 사용합니다. 표시하지 않고 이미지와 메시지 만 표시하고 싶습니다. – stackUser

+0

다른 텍스트를 링크 텍스트로 설정할 수 있습니다. 디버깅을 위해 50 % 이미지와 동일한 메시지를 어떻게 얻을 수 있습니까? – Dmitry

3

당신은 빈 문자를 사용할 수 있습니다!

<a href="https://www.nafasbekesh.ir/wp-content/uploads/2016/10/img1.jpg"> 
⁠</a> 
: 당신이 빈 문자를 사용할 때

그냥 sendMessage 방법 HTMLparse_mode 필드를 설정 는 text 필드에 하이퍼 링크 을 볼 수 없습니다 href가

에 이미지의 URL을 삽입

자신의 용도로 빈 문자를 복사하십시오.