<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>37635</bug_id>
          
          <creation_ts>2019-12-17 09:33:12 +0300</creation_ts>
          <short_desc>tgsend не отправляет сообщения в чат ResultCode: 500</short_desc>
          <delta_ts>2019-12-23 13:50:34 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>tgsend</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vera Blagoveschenskaya">vercha</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>antohami</cc>
    
    <cc>cas</cc>
    
    <cc>sotor</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>186382</commentid>
    <comment_count>0</comment_count>
    <who name="Vera Blagoveschenskaya">vercha</who>
    <bug_when>2019-12-17 09:33:12 +0300</bug_when>
    <thetext>tgsend-1.3.2-alt1
Стенд: p9 alt workstation x86_64

1) Создать бота, получить его токен, добавить в чат.
2) Выполнить команду
$ tgsend -t &apos;994424117:AAEsfJcbwJVWa8d_eSinsw4G4Zs43w-54ME&apos; --chatId=&apos;-353326361&apos; -m &apos;hello world&apos;

Результат: в телеграм от бота ничего не отправляется
Вывод в терминал

Request: { &quot;chat_id&quot;: &quot;-353326361&quot;,&quot;parse_mode&quot;:&quot;HTML&quot;, &quot;text&quot;:&quot;hello world&quot; }
ResultCode: 500

Для примера, с заданием в p8 http://git.altlinux.org/tasks/241850/ аналогичная команда успешно работает.

Эта же команда в режиме дебага:
$ tgsend -t &apos;994424117:AAEsfJcbwJVWa8d_eSinsw4G4Zs43w-54ME&apos; --chatId=&apos;-353326361&apos; -m &apos;hello world&apos; -d

check config file: /home/test/.tgsend/tgsend.conf
check config file: /etc/tgsend.conf
check config file: /usr/local/etc/tgsend.conf
check config file: /opt/tgsend/etc/tgsend.conf
Config file not found. 
option:t
  value:994424117:AAEsfJcbwJVWa8d_eSinsw4G4Zs43w-54ME
option:i
  value:-353326361
option:m
  value:hello world
Request: { &quot;chat_id&quot;: &quot;-353326361&quot;,&quot;parse_mode&quot;:&quot;HTML&quot;, &quot;text&quot;:&quot;hello world&quot; }
ResultCode: 500</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186384</commentid>
    <comment_count>1</comment_count>
    <who name="Vera Blagoveschenskaya">vercha</who>
    <bug_when>2019-12-17 09:49:47 +0300</bug_when>
    <thetext>Аналогично, не отправляются файлы. Пример вывода

$ tgsend -t &apos;994424117:AAEsfJcbwJVWa8d_eSinsw4G4Zs43w-54ME&apos; --chatId=&apos;-353326361&apos; -f /home/test/111 -d

check config file: /home/test/.tgsend/tgsend.conf
check config file: /etc/tgsend.conf
check config file: /usr/local/etc/tgsend.conf
check config file: /opt/tgsend/etc/tgsend.conf
Config file not found. 
option:t
  value:994424117:AAEsfJcbwJVWa8d_eSinsw4G4Zs43w-54ME
option:i
  value:-353326361
option:f
  value:/home/test/111
File open: /home/test/111
MIME-Type autodetect: application/octet-stream
--END_OF_PART-TGSEND-byX09
Content-Disposition: form-data; name=&quot;document&quot;; filename=&quot;111&quot;
Content-Type: application/octet-stream

*** Binary here ***

--END_OF_PART-TGSEND-byX09
Content-Disposition: form-data; name=&quot;chat_id&quot;

-353326361
--END_OF_PART-TGSEND-byX09--
ResultCode:500
ResultString:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186525</commentid>
    <comment_count>2</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2019-12-23 13:50:34 +0300</bug_when>
    <thetext>Пофикшено в 1.3.3-alt1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>