[GH-ISSUE #107] Telegram Bot - System.MissingMethodException #41

Closed
opened 2026-02-26 17:36:59 +03:00 by kerem · 4 comments
Owner

Originally created by @alfonsomarzano on GitHub (Jun 6, 2024).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-admin/issues/107

Originally assigned to: @franklupo on GitHub.

Bug type

Component

Component name

cv4pve-botgram

What happened?

  • Configurato botgram su nuova installazione cv4pve-admin tramite GUI.
  • Verificato token e chat_id.

/Module/CorsinvestProxmoxVEAdminBotgramModule restituisce questo errore

Start listening
Telegram
Bot User: @cv4pve_bot
Bot UserId: @redacted
Proxmox VE
Host: _redacted - verificato e sono corretti_
Username: _redacted_
Started bot in cluster _redacted_
System.MissingMethodException: Attempted to access a missing method.
at Corsinvest.ProxmoxVE.TelegramBot.Api.BotManager.ProcessMessage(Message message)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Corsinvest.ProxmoxVE.TelegramBot.Api.BotManager.ProcessMessage(Message message)
at Corsinvest.ProxmoxVE.TelegramBot.Api.BotManager.HandleUpdateAsync(ITelegramBotClient botClient, Update update, CancellationToken cancellationToken)
at Telegram.Bot.Polling.DefaultUpdateHandler.HandleUpdateAsync(ITelegramBotClient botClient, Update update, CancellationToken cancellationToken)
at Telegram.Bot.Polling.DefaultUpdateReceiver.ReceiveAsync(IUpdateHandler updateHandler, CancellationToken cancellationToken)
at Telegram.Bot.TelegramBotClientExtensions.ReceiveAsync(ITelegramBotClient botClient, IUpdateHandler updateHandler, ReceiverOptions receiverOptions, CancellationToken cancellationToken)
at Telegram.Bot.TelegramBotClientExtensions.<>c__DisplayClass126_0.<b__0>d.MoveNext()

Expected behavior

Comando /help dovrebbe generare lista comandi
Pagina Telegram Bot su CV4PVE-Admin dovrebbe essere funzionante

Relevant log output

No response

Proxmox VE Version

8.2.2

Version (bug)

1.1.1

Version (working)

No response

What browsers are you seeing the problem on?

Microsoft Edge

On what operating system are you experiencing the issue?

Windows, Linux

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct
Originally created by @alfonsomarzano on GitHub (Jun 6, 2024). Original GitHub issue: https://github.com/Corsinvest/cv4pve-admin/issues/107 Originally assigned to: @franklupo on GitHub. ### Bug type Component ### Component name cv4pve-botgram ### What happened? - Configurato botgram su nuova installazione cv4pve-admin tramite GUI. - Verificato token e chat_id. **/Module/CorsinvestProxmoxVEAdminBotgramModule restituisce questo errore** ``` Start listening Telegram Bot User: @cv4pve_bot Bot UserId: @redacted Proxmox VE Host: _redacted - verificato e sono corretti_ Username: _redacted_ Started bot in cluster _redacted_ System.MissingMethodException: Attempted to access a missing method. at Corsinvest.ProxmoxVE.TelegramBot.Api.BotManager.ProcessMessage(Message message) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at Corsinvest.ProxmoxVE.TelegramBot.Api.BotManager.ProcessMessage(Message message) at Corsinvest.ProxmoxVE.TelegramBot.Api.BotManager.HandleUpdateAsync(ITelegramBotClient botClient, Update update, CancellationToken cancellationToken) at Telegram.Bot.Polling.DefaultUpdateHandler.HandleUpdateAsync(ITelegramBotClient botClient, Update update, CancellationToken cancellationToken) at Telegram.Bot.Polling.DefaultUpdateReceiver.ReceiveAsync(IUpdateHandler updateHandler, CancellationToken cancellationToken) at Telegram.Bot.TelegramBotClientExtensions.ReceiveAsync(ITelegramBotClient botClient, IUpdateHandler updateHandler, ReceiverOptions receiverOptions, CancellationToken cancellationToken) at Telegram.Bot.TelegramBotClientExtensions.<>c__DisplayClass126_0.<b__0>d.MoveNext() ``` ### Expected behavior Comando /help dovrebbe generare lista comandi Pagina Telegram Bot su CV4PVE-Admin dovrebbe essere funzionante ### Relevant log output _No response_ ### Proxmox VE Version 8.2.2 ### Version (bug) 1.1.1 ### Version (working) _No response_ ### What browsers are you seeing the problem on? Microsoft Edge ### On what operating system are you experiencing the issue? Windows, Linux ### Pull Request - [ ] I would like to do a Pull Request ### Code of Conduct - [X] I agree to follow this project's Code of Conduct
kerem closed this issue 2026-02-26 17:36:59 +03:00
Author
Owner

@alfonsomarzano commented on GitHub (Jun 6, 2024):

L'esecuzione di botgram in modalità standalone non genera la problematica.

<!-- gh-comment-id:2152203392 --> @alfonsomarzano commented on GitHub (Jun 6, 2024): L'esecuzione di botgram in modalità standalone non genera la problematica.
Author
Owner

@alfonsomarzano commented on GitHub (Jun 7, 2024):

Il problema sembra essere legato a modifiche in Corsinvest/cv4pve-botgram.
Effettuando il rollback a 1.6.0 la exception scompare.
Chiaramente a causa di incompatibilità tra le due versioni ho dovuto forzare alcune modifiche.

<!-- gh-comment-id:2154160905 --> @alfonsomarzano commented on GitHub (Jun 7, 2024): Il problema sembra essere legato a modifiche in Corsinvest/cv4pve-botgram. Effettuando il rollback a 1.6.0 la exception scompare. Chiaramente a causa di incompatibilità tra le due versioni ho dovuto forzare alcune modifiche.
Author
Owner

@franklupo commented on GitHub (Jun 7, 2024):

Quali modifiche?

<!-- gh-comment-id:2154314952 --> @franklupo commented on GitHub (Jun 7, 2024): Quali modifiche?
Author
Owner

@alfonsomarzano commented on GitHub (Jun 7, 2024):

BotgramService.cs -> GetChats
42: public IReadOnlyDictionary<long, string> GetChats(string clusterName)
BotManager non ha la property Chats in 1.6.0

<!-- gh-comment-id:2154321190 --> @alfonsomarzano commented on GitHub (Jun 7, 2024): BotgramService.cs -> GetChats 42: public IReadOnlyDictionary<long, string> GetChats(string clusterName) BotManager non ha la property Chats in 1.6.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-admin#41
No description provided.