Cauterization / EchoBot

Other
0 stars 0 forks source link

Стикеры #9

Closed sergey-gulin closed 2 years ago

sergey-gulin commented 2 years ago

Telegram

Заданное число повторений никак не влияет на стикеры: стикер всегда возвращается в единичном экземпляре, а должен повторяться заданное количество раз. UPD: Это вроде должно было быть пофикшено тут #2, но стикеры всё ещё отправляются 1 раз

Vk

Во-первых, необходимую версию API следует вынести в README. Во-вторых, при получении стикера бот не может его обработать, вот лог

Tue Jun 21 11:20:25 2022 Info
Getting updates..

Tue Jun 21 11:20:25 2022 Debug
Outcomming request:
Request {
  host                 = "lp.vk.com"
  port                 = 443
  secure               = True
  requestHeaders       = []
  path                 = "/wh<>"
  queryString          = "?act=a_check&key=<>&ts=180&wait=45"
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
  proxySecureMode      = ProxySecureWithConnect
}

Tue Jun 21 11:20:26 2022 Debug
Recieved raw response:
"{\"ts\":\"181\",\"updates\":[{\"group_id\":<>,\"type\":\"message_new\",\"event_id\":\"41c3834af389ea30f649e3ba674368f96c311676\",\"v\":\"5.81\",\"object\":{\"date\":1655799565,\"from_id\":<>,\"id\":142,\"out\":0,\"attachments\":[{\"type\":\"sticker\",\"sticker\":{\"sticker_id\":9010,\"product_id\":279,\"images\":[{\"url\":\"https:\\/\\/vk.com\\/sticker\\/1-9010-64\",\"width\":64,\"height\":64},{\"url\":\"https:\\/\\/vk.com\\/sticker\\/1-9010-128\",\"width\":128,\"height\":128},{\"url\":\"https:\\/\\/vk.com\\/sticker\\/1-9010-256\",\"width\":256,\"height\":256},{\"url\":\"https:\\/\\/vk.com\\/sticker\\/1-9010-352\",\"width\":352,\"height\":352},{\"url\":\"https:\\/\\/vk.com\\/sticker\\/1-9010-512\",\"width\":512,\"height\":512}],\"images_with_background\":[{\"url\":\"https:\\/\\/vk.com\\/sticker\\/1-9010-64b\",\"width\":64,\"height\":64},{\"url\":\"https:\\/\\/vk.com\\/sticker\\/1-9010-128b\",\"width\":128,\"height\":128},{\"url\":\"https:\\/\\/vk.com\\/sticker\\/1-9010-256b\",\"width\":256,\"height\":256},{\"url\":\"https:\\/\\/vk.com\\/sticker\\/1-9010-352b\",\"width\":352,\"height\":352},{\"url\":\"https:\\/\\/vk.com\\/sticker\\/1-9010-512b\",\"width\":512,\"height\":512}],\"is_allowed\":false}}],\"conversation_message_id\":142,\"fwd_messages\":[],\"important\":false,\"is_hidden\":false,\"peer_id\":<>,\"random_id\":0,\"text\":\"\"}}]}\r\n"

Tue Jun 21 11:20:26 2022 Error
Error in $.updates[0].object.attachments[0]: key "from_id" not found

Tue Jun 21 11:20:26 2022 Warning
Restarting in 30 sec.