melod1n
9e30086af2
fix(images): cache Telegram photos by unique_id and pass base64 to LLM commands
...
Stop reading image files inside gemini/mistral commands; use pre-encoded image data from message parts
Rework loadImagesIfExists / loadImagesFromFileIds to return cached file_unique_ids and download only missing sizes
Encode cached images to base64 when assembling the reply chain
Make getPhotoMaxSize synchronous (returns PhotoSize), and map to URL only when needed
Await MessageStore.put / UserStore.put and prefetch single-image downloads on message receipt
2026-01-29 20:58:08 +03:00
melod1n
b74e0a0f3e
refactor(bot): centralize runtime state; support albums + safer vision handling
...
- make MessageStore.put() return StoredMessage and allow collectReplyChainText() to work with StoredMessage
- move muted users + answers loading into Environment (add Answers model + GEMINI_IMAGE_MODEL)
- extract message handling into processNewMessage() and add media-group (album) caching/downloading by unique_file_id
- for Ollama: check model capabilities before sending images; use replyToMessage helper consistently
- add /geminiGenImage command stub for Gemini image generation
2026-01-29 20:01:30 +03:00
melod1n
5f4405c9ee
fix checking of same user requirement
2026-01-29 18:14:07 +03:00
melod1n
73905780b9
some updates
2026-01-28 19:47:50 +03:00
melod1n
8cf1773926
update default gemini model
2026-01-28 18:35:24 +03:00
melod1n
486a7a4f11
update gemini chat to interactions api
2026-01-28 18:19:53 +03:00
melod1n
371e53ab14
update mistral-chat command
2026-01-28 18:02:57 +03:00
melod1n
12d9591109
some improvements for prompt making
2026-01-28 17:59:53 +03:00
melod1n
2f8f253eb1
Revert "update system-info text"
...
This reverts commit 44919f478e .
2026-01-28 16:54:11 +03:00
melod1n
44919f478e
update system-info text
2026-01-28 16:45:10 +03:00
melod1n
63c64dfa8e
update error logging
...
cutting all kind of prefixes for prompt making
2026-01-28 16:40:29 +03:00
melod1n
9a76d36568
fix transliteration command
2026-01-28 16:39:09 +03:00
melod1n
458e56dcb4
update streaming for Gemini and Mistral and update list gemini models and list mistral models commands
2026-01-28 12:29:52 +03:00
melod1n
f87fae8ef1
rename systemspecs to systeminfo
2026-01-27 19:40:05 +03:00
melod1n
44551af0fa
update ping command
2026-01-27 19:34:58 +03:00
melod1n
70e81b4965
update ping command
2026-01-27 17:42:07 +03:00
melod1n
c29587bd11
quote command now uses photo for background in original message if it is present
2026-01-27 12:28:32 +03:00
melod1n
0aa2e19237
update randomstring command
2026-01-22 20:26:33 +03:00
melod1n
027f5e0adf
update qr command
2026-01-22 20:22:54 +03:00
melod1n
436ab88e9c
fix shutdown command
2026-01-22 20:09:55 +03:00
melod1n
637537161d
update randomInt & randomString commands' titles and argsMode
2026-01-22 20:06:28 +03:00
melod1n
b85ea1a135
update quote command: support for entities and custom emojis
2026-01-22 20:06:06 +03:00
melod1n
2ba760f620
add title and description to debug command
2026-01-22 17:07:02 +03:00
melod1n
a428134218
add debug command
2026-01-22 17:04:38 +03:00
melod1n
04c458ce10
update leave command requirements
2026-01-22 16:00:05 +03:00
melod1n
19a5942fec
update requirements checking
2026-01-22 15:34:50 +03:00
melod1n
a5f6671e8b
update shutdown command argsMode
2026-01-22 14:49:20 +03:00
melod1n
0a3a05ecba
update leave command requirements
2026-01-22 14:47:46 +03:00
melod1n
2483533a0f
update leave command requirements
2026-01-22 14:43:32 +03:00
melod1n
01d1d30868
update title command requirements
2026-01-22 14:41:24 +03:00
melod1n
1493ffbe01
rename mute/unmute to ignore/unignore and add CHAT_ADMIN requirement for them and ban/unban commands
2026-01-22 14:36:14 +03:00
melod1n
e475de59b2
fix removeAdmin command requirements
2026-01-22 14:24:03 +03:00
melod1n
336b0e0b1e
use ollama.generate instead of ollama.chat for ollamaPrompt command
2026-01-22 14:20:07 +03:00
melod1n
f66c669b2a
remove keep_alive parameter
2026-01-22 14:13:18 +03:00
melod1n
e833c16878
improvements
2026-01-22 13:50:36 +03:00
melod1n
a7efc1a778
remove logging
2026-01-22 12:34:03 +03:00
melod1n
472594111f
fix "null"
2026-01-22 12:32:29 +03:00
melod1n
dbf6a54713
revert fix
2026-01-22 12:28:10 +03:00
melod1n
832db3a4c2
disable thinking
2026-01-21 20:13:25 +03:00
melod1n
193bb3d3ad
support for thinking models, ux improvements
2026-01-21 20:10:10 +03:00
melod1n
d029d53fee
fix match
2026-01-20 08:39:59 +03:00
melod1n
950e5c1784
fix match
2026-01-20 08:39:21 +03:00
melod1n
c7df7f210b
remove logging of show response
2026-01-20 08:37:59 +03:00
melod1n
32baaebb93
update regex matching - now bot responds only for base commands (like /ping) and with mention (like /ping@panfilovi4_bot) and ignores command if it mentions other bot;
...
Add ability to see, change and list gemini, mistral and ollama models
2026-01-20 08:31:05 +03:00
melod1n
c31345a3eb
add update bot's commands on every start and added only for creator mode
2026-01-18 17:39:30 +03:00
melod1n
2362b9dba1
add title and description to transliteration command
2026-01-18 16:37:20 +03:00
melod1n
b34510a32f
transliteration now uses reply if it is present
2026-01-18 16:34:34 +03:00
melod1n
20749860ad
add transliteration command (en <-> ru)
2026-01-18 16:29:16 +03:00
melod1n
0e79bbb87d
revert model options
2026-01-18 09:09:34 +03:00
melod1n
ff4f59c84f
edit markup on error
2026-01-16 22:05:59 +03:00